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

前端 未结 6 1010
日久生厌
日久生厌 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条回答
  •  -上瘾入骨i
    2020-12-29 10:07

    You can parse it yourself easily, by first reading obj.outerHtml. That should give you the entire html for that obj, then search it for the value onclick="????" and extract the ???? part.

提交回复
热议问题