1

i have a Windows Forms application, which uses a Webbrowsercontrol to display a dynamically generated Htmlpage. Is there a possibility to interact with the jscode of the page? For example if i have have the following function:

<script type="text/javascript">
function ReturnValue()
{
var output;
output ='test';
return output;
}
</script> 

Would there be a possibility to receive "test" in my application (not trough url)?

4

1 回答 1

2

是的,可以在浏览器控件上使用 InvokeScript;有关更多信息,请参阅本文:http: //www.codeproject.com/Tips/127356/Calling-JavaScript-function-from-WinForms-and-vice

于 2013-07-25T13:33:51.870 回答