Rowby Goren
asked on
Popup script when person leaves URL
I want a script to pop UP a window when someone leaves a web page.
For example if someone is at www.rowby.com/index.html and goes to ANY other URL then the popup window appears.
I guess this has to be javascript, but perhaps there is a more stable non javascript based perl solution -- in case someone has javascript turned of. HOWEVER if it needs to be javascript, then that's okay.
I guess this is a simple question. If not, let me know and I'll increase the points.
Thanks
Rowby
For example if someone is at www.rowby.com/index.html and goes to ANY other URL then the popup window appears.
I guess this has to be javascript, but perhaps there is a more stable non javascript based perl solution -- in case someone has javascript turned of. HOWEVER if it needs to be javascript, then that's okay.
I guess this is a simple question. If not, let me know and I'll increase the points.
Thanks
Rowby
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the solution(s). I'll keep this question live or a day or so in case there are other comments -- and then award the points.
ROwby
ROwby
ASKER
Sorry it took so long to award the points! I forgot about this one!
Rowby
Rowby
all set on this one Rowby?
ASKER
Thanks!
Rowby
Rowby
This is certainly a javascript solution. What u can do is, modify the html page and put the onUnLoad event to the BODY tag.
<body onUnLoad="popupFunction()"
The popupFunction() can be defined as
<SCRIPT language='javascript'>
function popupFunction() {
alert("Thank You for visiting My WebSite!");
}
</SCRIPT>
Instead of the 'alert' above, you can place ur own code.
Aman.