How to get actual JavaScript value in onclick from webbrowser control?

前端 未结 6 1026
日久生厌
日久生厌 2020-12-29 09:26

I\'m looking for a way to get the JavaScript code defined inside of onclick. I\'m using .NET 2.0 C# Visual Studio 2005.

Example:

<         


        
6条回答
  •  醉话见心
    2020-12-29 09:45

    Cast the element object to mshtml.IHTMLDOMNode, then read the attributes via IHTMLDOMNode.attributes. HtmlElement.GetAttribute is getting the IDispatch interface of the jscript function generated from the embedded attribute.

提交回复
热议问题