Forum Moderators: open

Message Too Old, No Replies

Close on open

         

HeadBut

2:51 am on Sep 28, 2005 (gmt 0)

10+ Year Member



Why doesn't this work?
<Body ONLOAD="window.close()">

No window close will work from the body...

So, how do you close a window as soon as it opens?

Dijkgraaf

4:18 am on Sep 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That works fine for me in IE.
Possibly the page you are seeing is a cached version, try refreshing or clearing out your cache.

And if the window isn't opened by Javascript and you want to get rid of the dialogue, try the following.
<Body ONLOAD="window.opener='';window.close();">

Or is your browser FireFox? I think that doesn't let you close it like that.

HeadBut

5:54 pm on Oct 4, 2005 (gmt 0)

10+ Year Member



I'm using Safari and I can't get it to close any window without clicking on the red "Close" button.

Thanks

Dijkgraaf

9:04 pm on Oct 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well you could try the method suggested here
[webmasterworld.com...]