PDA

View Full Version : Need a Auto Close Function for Internet Explorer



Talaoa
12-25-2006, 07:29 PM
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?

VatsaL
12-26-2006, 08:27 PM
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&q=timed+self+closing+window&meta=






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()


window.opener = top;
window.close()

hope that helps,
VatsaL