I am trying to disable javascript but I found something I can add to the URL to prevent it.
?no-script=true
How can I add this to the end of every URL that loads in webBrowser1?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe you can simply handle the ‘Navigating’ event and redirect the Browser appropriately.
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.navigating.aspx
If the URL does not end with ?no-script=true’, redirect it.
It’s worth noting that ‘?no-script=true’ isn’t really something you can depend on. Many (most) sites won’t honor your request and you’ll still get javascript.