.net - C# Webbrowser control displays javascript alerts -


i using c# webbrowser control in application , executing javascript alerts. application polling emails database , 1 of test scenario have alert in message body of email. email message body have alert(1); , when trying display text in webbrowser control, control executing piece of javascript , displaying alert. there way not allow webbrowser control display these alerts?

may can remove javascript code before loading html in webbrowser. don't use simple replace or regex, use html agility pack. there example of sanitation here.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -