Display Thanks message to website visitors

December 2016

You should agree with me that it is very to receive a message thanking your for visiting a website.

In this tips, we will show you to proceed in view to display a thanking message on your website:

JavaScript 1.La

Copy / Paste this code between the <head> </ head> of your html page

<script language="javascript">
function bye ()

alert ( "Thank you for visiting my site and see you soon!"), / / edit the text according to you.
</ script>
2.Appel Script

To use this feature, simply add the event in the tag onUnload <body>

<body onUnload="bye();">

NB: same must be done on all pages.

Related :

This document entitled « Display Thanks message to website visitors » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.