HTML & CSS Snippets

Name:Onunload Message
Description: Display a popup message when the you close the website window.

Code below...
<!--- Save the code below -->
<!--- Change "Thank You for visiting my website!" to your actual message -->
<!--- Open then close the window to see the message-->

<script type="text/javascript">
  function mymessage() {
    alert("Thank You for visiting my website!")
<body onunload="mymessage()">

« Back to HTML & CSS Snippets

Home | Site Map | Privacy Policy | Advertising | Contact Us
Copyright © 2006-2014 - All Rights Reserved.
eXTReMe Tracker