Solved

redirecting browser in VB-Script

Posted on 1998-07-01
4
194 Views
Last Modified: 2010-05-03
How do you redirect the browser to a new URL in (client side) VBScript?
0
Comment
Question by:glow060197
4 Comments
 
LVL 1

Expert Comment

by:Fonnie
ID: 1464744
It's not VBScript, but try this:
 <META http-equiv="refresh" content="(time to wait before moving on); url=(url to go to)">
So it could look like this:
 <META http-equiv="refresh" content="10,http:\\www.experts-exchange.com">
 <META http-equiv="refresh" content="10,welcome.htm">
In the second example, the path is relative to the current page, use the first example to go to a different site.
I use this on an IIS4 server, in .ASP and .HTM pages, IE3, IE4, Netscape, works fine.


0
 

Expert Comment

by:74wolfgang
ID: 1464745
response.redirect ("index.html")

hope this helps
bye

0
 

Accepted Solution

by:
Steve2 earned 50 total points
ID: 1464746
Redirecting browsers in VB-Script....here is one of the three commands. This should answer you question. Anymore just ask.

window.location.href = "URL goes here in the quotes"

-Steve2
steve2@eagle.ptialaska.net
0
 

Author Comment

by:glow060197
ID: 1464747
thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now