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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Click image link Webbrowser

Status
Not open for further replies.
Wrong forum, I'm afraid. Try forum329, although you might get redirected from there ...

VB != VBA != VBScript != ASP
 
No, sorry, unfortunately your code is not VB6. It is not VB at all. It is, at best, ASP VBScript. Indeed, given the lack of VBscript-specific code, this could equally well be JavaScript ...
 
The code i post is html code;
how to get the link via webbrowser in vb6 and then clic the image link
 
That's clearer what you want now. So, what have you tried so far?
 
i have a web page in webbrowser with link to click the link have a code html i posted
how to do to get the link and how to click it

thank you
 
Dim i, eXt As Integer
Dim cUrl As String
On Local Error Resume Next
If doc.links.length > 0 Then
For i = 0 To doc.links.length - 1
cUrl = doc.links(i).href
eXt = InStr(cUrl, "toc.php")
'Debug.Print eXt
If eXt > 0 Then
'Logs.Text = "Click >" & doc.links(i).href
'Debug.Print doc.links(i).href
'Debug.Print "Clicked ------------------------"
IE.Document.links(i).Click
Pause (5)
End If
Next
End If

------------------------------

i found this it's work; but my new probleme is how to redirect the new clicked url to (ie2) webbrowser like this

ie2.Navigate2 UrlGo, , "right"


Private Sub IE_NewWindow2(ppDisp As Object, Cancel As Boolean)
Dim TextePage, sLink As String

'
Set ppDisp = IE2.object ' for hiere i would like redirect to frame the url
IEPtc.Silent = True
Visible = True

End Sub

thank you

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top