how to Calling JavaScript in a WebBrowser control from C# in such a situation
Posted
by
weahappy
on Stack Overflow
See other posts from Stack Overflow
or by weahappy
Published on 2011-01-06T09:23:32Z
Indexed on
2011/01/06
9:53 UTC
Read the original article
Hit count: 169
sorry, my poor English,my question is as following:
Calling JavaScript in a WebBrowser control from C# in ordinary way: JavaScript
function showMe()
{ ... }
C#
webBrowser1.Document.InvokeScript("showMe");
that is ok!
but how to call in such situation:
html:
<a href="javascript:void(0);" onclick="App.followcancel('1880161672',this,'0','A','B');return false;">hello</a>
c#:
webBrowser1.Document.InvokeScript(????????)
I don't know how to write the correct paremeter to achieve the onclick's javascript
anyone help me,thanks a lot
© Stack Overflow or respective owner