Solved

redirecting browser in VB-Script

Posted on 1998-07-01
4
195 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA open file from excel cell 4 36
MsgBox 2 47
Add a task in Outlook from access 11 35
SLMGR Switches Are Not Working On KMS Host 3 67
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

914 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

18 Experts available now in Live!

Get 1:1 Help Now