...

View Full Version : Window Check



toymachine22122
01-10-2004, 12:14 AM
Is there a way to check if the window is open?
I'm trying to create a script that will force the user to close the window, since window.close only asks them if they want to. What I want to do is have the window.close confirm come up, and if they hit no, it will come up again. I've tried doing this with a loop, but the confirm comes up again whether they click yes or no. I suppose this is OK, since it eventually requires them to close it with CTRL+ALT+DEL, but it could be done more nicely...

SlySecretSpy
01-10-2004, 02:18 AM
while (1)
{
alert ("hahah");
};

That should piss them off enough to ctrl-alt-del.

j/k don't do that.

I don't think you can force close. I would recomend just pointing the browser to another site or a dummy page.

liorean
01-10-2004, 02:22 AM
Remember that the user may have sites in the history that they want to go back to after they are done with yours. Don't prevent them from doing so.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum