Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clicking a button on a web page

Status
Not open for further replies.

greymonkey

Technical User
Jul 20, 2003
29
0
0
AU
Hi,

I have a button on a form on a webpage which I am loading up using the webBrowser component in VB.net 2005.

The page has a form on which I am able to fill in using:
Code:
WebBrowser1.Document.GetElementById("Name").InnerText = "My Name"
but I cant get the clicking the submit button to work.

I have the code:
Code:
WebBrowser1.Document.GetElementById("Search").RaiseEvent("onclick")

but it is not doing anything.

The button is a on a java form if it makes any difference. the buttons code is:

Code:
<br /><a id='Search' name='Search' href="javascript:submitAction_win0(document.win0, 'Search');" tabindex='34' accesskey='\'><img src='SEARCH_1.gif' name='Search' alt='Search (Alt+1)' title='Search (Alt+1)' border='0' align='middle' /></a>


Thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top