Click to See Complete Forum and Search --> : How to load a page by leaving another page


Johanvh
12-05-2003, 04:26 AM
Hi,

I want to start a poll when leaving my website.
Now I start the poll by starting the website (onload).
Is there a function by leaving the page?

Thanks.

Webskater
12-05-2003, 05:19 AM
<SCRIPT FOR="window" EVENT="onbeforeunload" LANGUAGE="javascript">
put code in here to open your poll window or whatever you want to do
</SCRIPT>

TheBearMay
12-05-2003, 09:35 AM
Also can trigger using the onunload="functionName()" in the body tag.