A few words of thanks would be greatly appreciated.

Display Thanks message to website visitors

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.

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 Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.


Published by . Latest update on by Olivia Long.

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 (https://ccm.net/).