|
-
Jun 1st, 2000, 06:22 AM
#1
Thread Starter
Lively Member
When a user opens my homepage, I want them automatically redirected to another page. How can I do this in VBScript?
-
Jun 1st, 2000, 07:08 AM
#2
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>
-
Jun 1st, 2000, 02:23 PM
#3
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>
-
Jun 1st, 2000, 03:52 PM
#4
Thread Starter
Lively Member
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.
-
Jun 1st, 2000, 04:32 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|