Click to See Complete Forum and Search --> : Go back in original window from popup


hooloovoo24
09-20-2004, 03:46 PM
Hi all

I have a window that pops up when the user clicks on a link which warns them that they are leaving the site. The popup window's contents are very basic. All it says is:

You are now leaving our site. To go back, hit the back button on your browser window or click here.

The word here being a link (in theory) to go back to the page they came from but IN THE ORIGINAL WINDOW not the popup window. How would I do this? The other issue I don't know how to deal with is how do I set it to automatically close after a certain amount of time?

hooloovoo24
09-20-2004, 04:16 PM
I was thinking something like this:

<a href="mypage.html" onclick="history.go(-1">here</a> but how do I make it go back in the other document window?

hooloovoo24
09-20-2004, 04:48 PM
OK forget what I said before. I got this script from http://www.codelifter.com/main/javascript/selfclosewindow1.html which I am using now. Now all I want to do is to make the original page go to a certain link. How would I do that? Because right now, the link just opens up the popup window and then the popup window closes after 20 seconds and that's all. No back button, no link. Anyone know what I should do?