Results 1 to 2 of 2

Thread: Need a Auto Close Function for Internet Explorer

  1. #1
    Join Date
    Dec 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need a Auto Close Function for Internet Explorer

    Hi Everyone,

    I'm looking for a script to auto close a internet explorer 7 window after say 5 minutes time or even better after 2 minutes inactivity. I need it to close without asking confirmation in order to be able to update all the PDF files linked to the page in question.

    I've read several threads about a Self.Close and a Windows.Close function but I'm very new to html and javascript and have no idea where to past the scripts I have seen and was unable to make any of them auto close my website.

    Can Anyone help me out?
    Last edited by Talaoa; 12-26-2006 at 12:15 PM.

  2. #2
    Join Date
    Apr 2006
    Location
    London
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Talaoa View Post
    Hi Everyone,

    I'm looking for a script to auto close a internet explorer 7 window after say 5 minutes time or even better after 2 minutes inactivity.
    There are millions of em out there

    http://www.google.co.uk/search?hl=en...g+window&meta=



    Quote Originally Posted by Talaoa View Post

    I need it to close without asking confirmation
    not sure about the alert though;
    but you could try these, theyre known to work:

    Just put window.opener=self; or window.opener = top; on the line before window.close()

    Code:
    window.opener = top;
    window.close()
    hope that helps,
    VatsaL

Bookmarks

Posting Permissions

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