How to get actual JavaScript value in onclick from webbrowser control?
问题 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: <span id="foo" onclick+"window.location.href='someURL'>click here</span> My goal is to get the string "window.location.href='someURL'" . Scenario: A user clicks on web page element, the tag shown above for instance, inside of WebBrowser control. Then the clicked tag is refereed to H tmlElement object . In WebBrowser control I then call HtmlElement object's