CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2001
    Posts
    9

    Redirecting Links Using VB Code

    How do make the web browser redirect the user to another page using Visual Basic code? Basicaly, I need the user to fill out a form, then show them a status page, and then redirect them to part 2 of the form...
    -Sameer


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Redirecting Links Using VB Code

    this is vbscript, you need to implement it in a html page

    sub redirecttopage()
    window.location.href = "mypage.htm"
    end sub

    call this is the load event of the page

    window.settimeout(5000,"redirecttopage")

    this will cause the oage to display for 5 seconds, and then do the redirecting stuff

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

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

Featured