Results 1 to 5 of 5

Thread: Redirect using VBScript

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Posts
    66
    When a user opens my homepage, I want them automatically redirected to another page. How can I do this in VBScript?

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Exclamation

    You can do something like this:
    Code:
    <HTML>
    <HEAD>
    
    <TITLE></TITLE>
    <SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
    
    
    Sub window_onload
    	window.open "http://www.microsoft.com"
    End Sub
    
    </SCRIPT>
    </HEAD>
    <BODY>
    
    <P> </P>
    
    </BODY>
    </HTML>

  3. #3
    Guest
    or if you don't want to open a new window try:

    Code:
    <html>
    
    <script language=javascript>
    location.href = "http//www.someotherplace.com/"
    </script>
    
    </html>

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Posts
    66
    Thanks for your replies, but I isn't what I wanted. I want to use VBScript, but I don't want to open a new window. Or maybe there's another way: I'm executing some VBScript and then I want to open the other page.

  5. #5
    Guest
    ok, vbscript then:
    Code:
    <html>
    <script language="vbscript">
    location.href="http://www.microsoft.com/"
    </script>
    </html>

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