Results 1 to 3 of 3

Thread: Redirect & then Timeout together??

  1. #1
    Join Date
    Mar 2011

    Redirect & then Timeout together??

    Hi All,

    I have a problem that I hope someone can solve for me as I am new to HTML.

    I need a website that im building to have links to certain sites. I also need these links to open in a new window and then timeout and close after 2 minutes.

    I do not control the target sites so tried to perform this link via the following code:

    <meta HTTP-EQUIV="REFRESH" content="0; url=Target Website.html">
    <script language="JavaScript"> 
    window.setTimeout("self.close()", 120000); 
    The redirect works fine and I know that the self close works also, however I cannot seem to make the 2 work together.

    Does the redirect to the new website render the self close script uesless or is there any way to make the 2 work together?

    Any help you can give will be greatly appreciated.

  2. #2
    Join Date
    Dec 2002
    St. Louis, MO, USA
    How are you opening the pop up? The pop up needs the setTimeout/self.close(). If you are opening the pop up by setting it to a variable, then you could close the child from the parent.
    o . Q
    ___ "You live and you learn; or you don't live long." - Lazarus Long


  3. #3
    Join Date
    Mar 2011
    Hi Wolfshade,

    The pop up has the enclosed timeout code in it. I am presuming that the redirect code over-rides the timeout script. Would that be why this doesnt work for me?

    How do I go about finding how to command the selfclose from the parent window?
    Last edited by glengates; 04-05-2011 at 06:28 PM.

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