WebView2ControlMBS javascript

I can’t figure out the syntax for calling javascript from the WebView2ControlMBS. For the HTMLViewer I use …HTMLViewer1.ExecuteJavascript(“document.getElementById(‘foundID’).click();”)

How can I get that to work with the WebView2ControlMBS? I looked at the example on the MBS site and can’t figure it out.

WebView2ControlMBS control has an ExecuteScript method there. Did you try it?

Thanks Christian. I did try that but I had a typo, I thought it was something really simple. Thanks again.

1 Like