c# - Interaction between JavaScript and Windows Forms -
i have windows forms application, uses webbrowsercontrol display dynamically generated htmlpage. there possibility interact jscode of page? example if have have following function:
<script type="text/javascript"> function returnvalue() { var output; output ='test'; return output; } </script>
would there possibility receive "test" in application (not trough url)?
yes it's possible using invokescript on browser control; see article more information: http://www.codeproject.com/tips/127356/calling-javascript-function-from-winforms-and-vice
Comments
Post a Comment