Results 1 to 3 of 3

Thread: [RESOLVED] Click Link!

  1. #1

    Thread Starter
    Frenzied Member arpan_de's Avatar
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    1,394

    Resolved [RESOLVED] Click Link!

    Assume that a web browser project has a Boolean variable named blnNavigated. The browser also has the Back & Forward buttons for users to navigate.

    What I want is if a user clicks a link in a web page to navigate to another page, then blnNavigated should be set to True but if the user navigates using the Back or Forward button, then blnNavigated should be set to False. Setting blnNavigated to False can be done in the Back & Forward buttons' Click event function but how do I set blnNavigated to True if the user has clicked a link in the web page to navigate to another page?


    ARPAN

    IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!

    NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!

    PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Click Link!

    The easist solution I can think of is to use another boolean variable which you set to True when the Back/Forward button is clicked. Then you can check this flag in the BeforeNavigate2 event.
    VB Code:
    1. If blnNavButtons = True Then
    2.     blnNavigated = False
    3. Else
    4.     blnNavigated = True
    5. End If
    6. blnNavButtons = False

  3. #3

    Thread Starter
    Frenzied Member arpan_de's Avatar
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    1,394

    Re: Click Link!

    Thanks, Joacim


    ARPAN

    IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!

    NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!

    PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width