Thursday, February 28, 2008

how we can close window in IE without confirmation?

solution is very simple, just keep in mind it, probably it will help you in future.

for IE.7 and for IE.6
input type="button" value="close" onClick="window.opener='_parent'; window.close();"

5 comments :

Woonjas said...

will this work with Internet Explorer 7.0 as well? If so IBM should implement it within DWA as well.
Right now with 7.0.x's DWA if you've set it as default mail client, you're stuck with this popup after sending a message through MAPI (like from within Microsoft Office).

Dmytro Pastovenskyi said...

it should work in both versions of IE

Anonymous said...

Visit this, if required.

http://technoexperts.blogspot.com/2008/08/close-window-without-javascript-alert.html.

Anonymous said...

Previous is not Working.

Visit for more details
http://developmentzone.blogspot.com/2008/08/aspnet-modal-dialog-with-postback.html

Anonymous said...

Sorry,,

Visit for more details
http://developmentzone.blogspot.com/2008/08/close-browser-window-without-prompt.html