Click here to Skip to main content
15,891,662 members
Articles / Programming Languages / C#

How to easily capture the NewWindow3 event and detect a JavaScript window.close() call with System.Windows.Forms.WebBrowser

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
8 Apr 2010CPOL3 min read 71.1K   13  
This article describes a simple method of capturing a NewWindow event for the Windows Forms WebBrowser control, and also how to detect (and potentially cancel) a JavaScript window.close() call.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Gold Medal Travel
United Kingdom United Kingdom
"What is best in life: Crush your enemies, see them driven before you, and to hear the lamentation of the women!"

Comments and Discussions