Click here to Skip to main content
13,296,407 members (55,851 online)
Rate this:
Please Sign up or sign in to vote.
I want to know how navigate to next page on google search automatically (123456789). I found this code but I don't know how use it.

Dim temp = WebBrowser1.Document.GetElementById("pnnext")
  If temp Is Nothing OrElse TryCast(temp.DomElement, mshtml.HTMLAnchorElement) Is Nothing Then
  End If
Posted 9-Aug-11 7:19am
Updated 9-Aug-11 7:37am
Sam_IDEA 9-Aug-11 12:26pm
Please elaborate your question. I'm not getting what you want to say.
edumaite 9-Aug-11 12:36pm
Sure. I am making a small google tool and I want auto click on button called "next" for navigate to the next page on google search.Sorry for my bad english.Thanks.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Just get the value of the href attribute inside that element, and navigate to it.
edumaite 9-Aug-11 12:46pm
I trying but I can not get it:
<span style="display:block;margin-left:53px;text-decoration:underline"> Next </span>
I can not find any id element.Can you help me?
edumaite 9-Aug-11 12:47pm
<span class="csb ch" style="background-position:-96px 0;width:71px"></span>

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171207.1 | Last Updated 9 Aug 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100