I'm developing Silverlight OOB application and I need to show web pages in it - I would like to do it through out WebBrowser control, but during page load I get lots of MessageBoxes with JavaScript errors.
Is there a way of hiding those MessageBoxes?
In winform WebBrowser control there is ScriptErrorsSuppressed
property that can be used, but in SL there isn't.
I would be appreciated for any help.
Today I've returned to this problem in my app and I was able to resolve it somehow. Because I need to show only a pages - without much user interaction on those pages - I solve it this way.
In code I create a html with iframe with attribute
security="restricted"
and then I inject url to this iFrame.My code looks like this:
and then I'm using
NavigateToString
method ofWebBrowser
to load my html to it.P.S. I've added this as an answer to accept this question.