onunload message needed but not when they click internal links

Posted by tumtummetjes on Stack Overflow See other posts from Stack Overflow or by tumtummetjes
Published on 2010-05-27T12:49:57Z Indexed on 2010/05/27 12:51 UTC
Read the original article Hit count: 280

Filed under:
|
|

okay i have a question...

i need an message script that only will come up when people are really leaving the current webpage so not the current website...

so actualli when people are leaving the website entirelly the message will come up, they need to press the ok button to stay at the current page and cancel to leave the entire website..

the script may not run when people are actually stay on the website or when the click on internal links/pages..

does that make sence/? and can it be done? who know such code?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about message