I am using the following code to try to make an "unclosable" HTML page.
function pass(){
var ansf=prompt ("Password Required", "Password");
if (ansf=="asjdfhasdijf") alert("Password Accepted");
else (pass());
}
The HTML involved with this looks like this:
<body onUnload="pass()">
I'm not sure why this isn't working, it used to (about 1 year ago).
I apologize if this is a stupid question, I haven't worked with JavaScript for at least a year (and even then I knew very little).
Prevent this page from creating additional dialogs []
Current browser design will never allow an "unclosable page"