Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Redirecting using the equivalent of window.locatio

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,83
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Redirecting using the equivalent of window.locatio
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Redirecting using the equivalent of window.locatio - 6/2/2001 12:02:41 AM   
  drkesrel

 

Posts: 11
Score: 0
Joined: 5/23/2001
From: USA
Status: offline
I need to redirect to another web page. In javascript I used
windo.redirecr() what is the equivalent in vbscript?
 
 
Post #: 1
 
 Re: Redirecting using the equivalent of window.locatio - 6/2/2001 12:03:46 AM   
  rahul27

 

Posts: 19
Score: 0
Joined: 5/23/2001
From: India
Status: offline
Here is an example of both js and vbs ways (exactly the same)

<html>
<script language = "vbscript">
sub vbsSwitch(page)
top.location.href = page
end sub
</script>

<script language = "javascript">
function jsSwitch(page){
top.location.href = page
}
</script>
<body>
<input type=button value="VBS Switch"
onClick="vbsSwitch('test2.html')">
<input type=button value="JS Switch"
onClick="jsSwitch('test3.html')">
</body>
</html>

(in reply to drkesrel)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Redirecting using the equivalent of window.locatio Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts