Click to See Complete Forum and Search --> : Looking for Script when "back" is pressed


ZUCKMAN
08-22-2003, 07:58 PM
I am looking for a script that will pop-up a window when a visitor presses the "back" button or "X" exit/close button....but not when they penetrate into my store. Can anyone help?

pyro
08-22-2003, 08:09 PM
You can not differentiate between the events triggering the onunload (or IE's onbeforeunload), but you could try a script like this (http://forums.webdeveloper.com/showthread.php?s=&threadid=4083#post19662) one (curtesy of Charles), which will iterate through the links and set them to not trigger the function...