javascript - problem with window
i need help with a script that wont let window close
i have tried using onUnload
and have gotten it to work with internet explorer, but for some reason i can't get it to work for netscape navigator
the original .html page it refers to is on my desktop..would this make a difference in navigator
please help!!
Anonymous posted this at 17:05 — 18th October 1999.
They have: 5,633 posts
Joined: Jan 1970
When closing a window using self.close() you are given a confirm message - Are you sure? Y/N
or something similar to that. Is this the problem you are having? I can't really understand what is going on from your description. Maybe you post the script so we could have a look at it.
----------
[email protected]
http://go.to/hass
albino posted this at 19:26 — 18th October 1999.
They have: 5 posts
Joined: Sep 1999
basically i am trying to make it impossible to close the original window..when it opens it also opens a second window (the www.yahoo.com) i have set up a basic network the window keeps getting closed.
i want to make this impossible to do
<script language="JavaScript">
<!--
function NoClose(){
window.open("c:/windows/desktop/noclose.htm");
}
function popupPage(){
var page = "http://www.yahoo.com";
windowprops = "height=500,width=500,location=yes,"
+ "scrollbars=yes,menubars=yes,toolbar=yes,resizable=yes";
window.open(page, "Popup", windowprops);
}
-->
</script>
<body onUnload="NoClose()" bgcolor="#000000" text="#FF0000" onLoad="popupPage()">
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.