I am using the webBrowser control in C# to load a webpage and need to call a JavaScript function that returns a string value. I got a solution to use the InvokeScript method, and I tried a lot, but everything has failed.
相关问题
- Is there a limit to how many levels you can nest i
- Sorting 3 numbers without branching [closed]
- How to toggle on Order in ReactJS
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
Can you specify what failed?
My sample below consists of a form with a WebBrowser and a Button.
The object called y in the end has the sentence "i did it!". So with me it works.
You can send arguments to the js function: