4
Thanks

A few words of thanks would be greatly appreciated.

Display Thanks Message to Website Visitors

It can be a nice idea to thank visitors for visiting your website or blog. It creates a good atmosphere in which to gain returning visitors. In this short How-To guide, we will show you how to display this message of thanks on your website using JavaScript.




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 your wishes.
)
</ script>
2.Appel Script


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

<body onUnload="bye();">

NB: You must complete these steps on all pages.
4
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
Related
This document, titled « Display Thanks Message to Website Visitors », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).

Subscribe To Our Newsletter!

The Best of CCM in Your Inbox

Subscribe To Our Newsletter!