Welcome to Anythingweb.org
You are not Logged in! Log in to check your messages.
Anythingweb.org
Resources for Webmasters.
Today's:
Popular Articles and Posts:
Popular Articles and Posts:
Javascript onUnload Popup Tutorial
Submitted by: web_guy
Hits:459
Want to send a user a message when they try to exit your site? This simple script will create a popup window when a user leaves your site.
This code is pretty simple. The onUnload Event Handler will perform an action when the user tries to leave your site. In this case, it will open a window with the Yahoo site. You can change this to point at any site you like. You can also change the staus, height, width, and resizable options to what matches your need. Simply paste this code into the page you want to execute this script on.
SEO