Article ID: 946214 - Last Review: September 22, 2011 - Revision: 3.0 An HTML application that uses the "onbeforeunload" event closes unexpectedly in Internet Explorer 7 when you click "Cancel"
On This PageSYMPTOMSConsider the following scenario:
CAUSEThis issue occurs because of how the Shdocvw.dll file handles the IOleCommandTarget::Exec method. STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. MORE INFORMATIONThis problem does not occur when you start the HTA in Microsoft Internet Explorer 6. Steps to reproduce the problem
REFERENCESFor more information about HTAs, visit the following Microsoft Developer Network (MSDN) Web site: http://msdn2.microsoft.com/en-us/library/ms536496.aspx
(http://msdn2.microsoft.com/en-us/library/ms536496.aspx)
For more information about the event.returnValue property, visit the following MSDN Web site:http://msdn2.microsoft.com/en-us/library/ms534372.aspx
(http://msdn2.microsoft.com/en-us/library/ms534372.aspx)
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
