?
Solved

redirecting browser in VB-Script

Posted on 1998-07-01
4
Medium Priority
?
203 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 200 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

752 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