Advertisement Jump to content
Sign in to follow this  

C# and JavaScript = Evil.

This topic is 4884 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

It would seem that once again JS is the bane of my life... Heres the deal: I have a tool that captures data sent to and from a webserver from a browser. The browser is an AxSHDocVw.WebBrowser object embeded into my application. Everything works as intended until I come to a page with javascript methods on it, in particular the window.close() method. When my application catches a popup it replicates itself and carries on collecting the data, however when it comes to the window.close() method being evaluated, the whole application closes down? Argh! Does anyone have any info about how to stop particulart javascript, or js as a whole? I would've caught the issue and deblt with it in the WindowClosing method for the webbrowser, but due to a bug in .NET the event doesn't get fired.. Thanks in advance. Lokes.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!