Display Thanks message to website visitors

Ask a question

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.
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team