Hi all i have html page loaded in to my webbrowser controle that looks like this:
<a href="http://www.somesite.com/recordds.wmt?page=31" title="Go to Next Page" onfocus="if(this.blur)this.blur();"
> &nbsp;next &raquo;</a>

I used the following code to click on it but it doesn't work . could you guys tell me what i am doing wrong ? Thanks

Code:
Private Sub Command8_Click()
For Each ele In WebBrowser1.Document.getelementsbytagname("a")
If ele.innertext = "&nbsp;next &raquo;" Then ele.Click
Next
End Sub
or

Code:
Private Sub Command8_Click()
For Each ele In WebBrowser1.Document.getelementsbytagname("a")
If ele.innertext = "next" Then ele.Click
Next
End Sub