auto reopen webpage upon close

liunx

Guest
Greetings,<br />
<br />
Does anyone know how to automatically reopen a webpage when the user closes it? Possibly by using a script? The script would allow the webpage to be minimized but if the user were to close the webpage the script would automatically reopen that webpage.<br />
<br />
Any insight would be greatly appreciated.<br />
<br />
Thank you for your time,<br />
<br />
*Nick*<!--content-->IE stupidly supports an onunload feature that could be used for just the kind of annoying, user-losing script, sorry to say that real browsers like Mozilla will not let you have this kind of unreasonable control that you desire.<!--content-->Thank you for replying.<br />
<br />
I'm using the onUnload feature for an intranet webpage that i'm designing, not for evil purposes ;)<br />
<br />
But incase someone else should have the same question as I, here is the code for how i implemented it:<br />
<br />
<BODY onUnload="window.open(url,windowname,features)"><br />
<br />
Use single quotes around your url, windowname and whatever features list (if any) you declare for the new window.<br />
<br />
Also, here is a link to how to implement this feature using a Javascript:<br />
<br />
<!-- m --><a class="postlink" href="http://www.psacake.com/web/ea.asp">http://www.psacake.com/web/ea.asp</a><!-- m --><br />
<br />
Thank you again for your help!<br />
<br />
*Nick*<!--content-->Originally posted by nick1 <br />
Thank you for replying.<br />
<br />
I'm using the onUnload feature for an intranet webpage that i'm designing, not for evil purposes ;)<br />
<br />
But incase someone else should have the same question as I, here is the code for how i implemented it:<br />
<br />
<BODY onUnload="window.open(url,windowname,features)"><br />
<br />
Use single quotes around your url, windowname and whatever features list (if any) you declare for the new window.<br />
<br />
Also, here is a link to how to implement this feature using a Javascript:<br />
<br />
<!-- m --><a class="postlink" href="http://www.psacake.com/web/ea.asp">http://www.psacake.com/web/ea.asp</a><!-- m --><br />
<br />
Thank you again for your help!<br />
<br />
*Nick* and your script fails in real browsers. It is also utterly pointless the rest of the time unless you want to spam people with ads or annoy them when they cant close your site. It is a script that would idealy never be used... because it is retarded.<!--content-->Geez man, chill out. For my situation it worked perfectly so i posted it incase someone might come across the same situation as i. To those of you that were helpful, thank you again.<br />
<br />
*Nick*<!--content-->Originally posted by nick1 <br />
Geez man, chill out. For my situation it worked perfectly so i posted it incase someone might come across the same situation as i. To those of you that were helpful, thank you again.<br />
<br />
*Nick* And what situation was that? What situation could you possibly need a script like this? Neither me or lavalamp have given you information on how to use your script, we have both said the same thing. This script will fail in real browsers (internet explorer is not a real broder... its a crappy browser).<!--content-->You know how utterly ****** up that is? I tried it out, and it sent IE in an infinite loop. Nothing the user can do will allow them to escape. Links, quitting, terminating the application. I couldn't escape until I did it so fast that IE crashed. I HAVE to ask, why would you ever need this? Unless you're spamming.<!--content-->i won't rant at you, but i must agree that it's a bad idea. it's not a good idea to upset your users to the degree that you set bob at.<!--content-->
 
Back
Top