softwareboy
New member
- Joined
- Mar 4, 2008
- Messages
- 1
- Programming Experience
- Beginner
I write a program to get the web site from internet by using WebBrowser and then parse it to get imformation.
I use the code like here:
HtmlDocument html = webbrowser1.Document
HtmlElement tags = html.getElementsByTagName("td")
But the problem is that, when there is a tag: <td><a onclick = "javascipt:doSomething();">Click here</a></td>, if I want to get the name of the function of the JavaScript method(doSomething), I can't use tags(1).firstChild.getAttribute("onclick"), because it will return System._COMObject. So how can I do? Please help...
I use the code like here:
HtmlDocument html = webbrowser1.Document
HtmlElement tags = html.getElementsByTagName("td")
But the problem is that, when there is a tag: <td><a onclick = "javascipt:doSomething();">Click here</a></td>, if I want to get the name of the function of the JavaScript method(doSomething), I can't use tags(1).firstChild.getAttribute("onclick"), because it will return System._COMObject. So how can I do? Please help...