Forum Moderators: open

Message Too Old, No Replies

avoid close window notification in IE browsers

firefox and netscape are fine but close window notification in IE is a drag

         

johnglynn

2:14 pm on Oct 15, 2007 (gmt 0)

10+ Year Member



I open a new window then provide a button to close that window (window.close). In IE the user has to approve the close window action by clicking on a close window notification dialogue box button. Anyway around this?

Thanks!
John

Marshall

6:13 pm on Oct 15, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



To my knowledge, this is a browser-side security feature in IE to prevent/warn of malicious code. Only the user can override it in their security settings.

Marshall

rocknbil

9:11 pm on Oct 15, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome aboard johnglynn, may I ask what method you are using to open a new window?

<a href="somepage.html" target="_blank">Link</a>
<a href="somepage.html" target="new window">Link</a>

Or Javascript:
<a href="somepage.html" onClick="window.open('somepage.html','newWin','width=500,height=500,resizable'); return false;">Link</a>

I ask because using target as in the first two methods will most likely give you that warning, I've never had such problems with windows opened via Javascript.

But I could be wrong . . .