I'm using the WebBrowser control and mshtml.dll. When I simulate click on link <a href='..'>..</a>
, the WebBrowser shows a JavaScript warning dialog:
Unable to move the focus to the element as it is in the invisible ,off or can't have a focus.
The code I use to simulate the click:
anchor.click();
...where anchor
has the type: HTMLAnchorElementClass
So I want to disable all JavaScript warnings in my component WebBrowser. How might I do this?