Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<a class="toolbarButton" href="javascript:top.detail.tpzExecute('6',null,'detail');void(0);" origcaption="Search" title="Start this Search  Alt+F6" tabindex="1"><img src="images/obj16/tsearch.gif" alt="Start this Search  Alt+F6" title="Start this Search  Alt+F6">&nbsp;Search</a>


Does anyone know how to execute the next javascript funtion in VB.NET

Thanks

Posted

Thanks Abhinav I figured out how to execute the toolbar button.

http://thebot.net/threads/vb-net-help-clicking-javascript-button.119250/

the code will be like this
VB
Dim HTMLEles As HtmlElementCollection = WebBrowser1.Document.All
           For Each btn As HtmlElement In HTMLEles
               If btn.GetAttribute("src").Contains("images/obj16/tsearch.gif") Then
                   btn.InvokeMember("click")
               End If
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900