Log in

View Full Version : Closing a Page before opening a new window



hauareyou
01-03-2011, 09:24 PM
Hello,

I am looking for a script that would close the current window/page before trying to open a new window or page. Basically what I am trying to do is, block visitor from having the same page open twice...They have to close the current page before trying to open a new one. Hopefully this make sense..

Thank You

djr33
01-04-2011, 08:18 AM
There's no way to force this. You might be able to coordinate it in some cases, but it's not possible to be sure because windows aren't related in browsers. You could try to force it to be launched in a popup window with a certain name (so the new page would replace the old page), but if they access the page directly it won't work-- and popups may be blocked in some browsers as well.