.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

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -