dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Go back in original window from popup

  1. #1
    Join Date
    Aug 2004
    Location
    Middle of Friggin Nowhere, NM
    Posts
    370

    Go back in original window from popup

    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?

  2. #2
    Join Date
    Aug 2004
    Location
    Middle of Friggin Nowhere, NM
    Posts
    370
    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?

  3. #3
    Join Date
    Aug 2004
    Location
    Middle of Friggin Nowhere, NM
    Posts
    370
    OK forget what I said before. I got this script from http://www.codelifter.com/main/javas...sewindow1.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?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles