|
Tested with Netscape 2.0, Netscape 3.0, and M$IE 3.0 running on Win '95. PURPOSE: To demomonstrate how to display an Alert Message after a visitor has chosen to leave your site. THE SCHEME: The backbone of this scheme is placing an onUnload event handler in the <frameset> tag of the frames lay-out page. As a visitor leaves your site the frameset is unloaded, triggering the event handler which calls a function that displays an Alert Box message. KNOWN DRAWBACKS: WHY FRAMES: Placing the onUnload in the <frameset> tag allows you to load and unload pages within your site without triggering the exit signal. To test this out, click on the Internal Example Link now. You should see an example page load and then be allowed to return here, both without triggering the Good-Bye message. TRY IT OUT: All right, enough of the explanations already... let's see what this example is really about. To test this scheme, all you have to do is unload the frameset page. Try one or all of the following:
by Tim Wallace timothy@essex1.com |