HTML: How to make a window close.?

Reticon

New member
So I have a webpage that has a an <a href = "something.html">
and that 'something.html' needs to close by itself within five seconds. Is there any code that can do that?

I'm thinkin either I have to code 'something.html' to close or the page that's pulling it....

any takers?
 
Not entirely sure, but try this and see if it works:

<BODY onLoad="setTimeout('window.close()', 5000)">


The 5000 is milliseconds, which means 5 seconds! ^_^

Use appropriately, modify to your needs! I just tested this and it works, in a literal context. This will close the window in 5 seconds. You may need to change some stuff.
 
Back
Top