Closed Thread Icon

Topic awaiting preservation: stop a running function (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=7903" title="Pages that link to Topic awaiting preservation: stop a running function (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: stop a running function <span class="small">(Page 1 of 1)</span>\

 
911
Paranoid (IV) Inmate

From: Stuttgart, Germany
Insane since: Apr 2001

posted posted 10-26-2001 12:16

hi ho!

i´ve got this problem: i want the user to confirm if he really want to leave the page or not. leaving the page is not the problem. my problem is that i can´t stop/leave/break the function to stay at the site without reloading it.

code:
<script language="JavaScript">
function check() {
var msg = "\nDo you really \n" + "want to leave?";
if (confirm(msg)) {
location.replace('goSomwhere');
}
else {
// leave/break this function and stay
// break; - does not work
}
}
</script>



i hope someone could help me or could give me a hint.



[This message has been edited by 911 (edited 10-26-2001).]

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-26-2001 12:32

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

« BackwardsOnwards »

Show Forum Drop Down Menu