You mean you want the VBScript take you back to the home page?
Maybe you mean something like this:
If you want your VBscript button to take you back to the home page or any page you can do the following:
Code for your VBScript button, were instead of google.com you can put whatever page you want for instance the address of your home page, so when the user clicks the home button in your page he will be taken to the home page through the Sub that is called Button1_OnClick:
CODE
<script LANGUAGE="VBScript">
<!--
Sub Button1_OnClick
document.location = "http://www.google.com"
End Sub
-->
</SCRIPT>
Code for your input button:
CODE
<FORM><INPUT NAME="Button1" TYPE="BUTTON" VALUE="Click Here"></FORM>
And here is a working example of the code that was mentioned above:
CODE
<html>
<head><title>VB Button Test</title>
<script LANGUAGE="VBScript">
<!--
Sub Button1_OnClick
document.location = "http://www.google.com"
End Sub
-->
</SCRIPT>
</head>
<body>
<form><INPUT NAME="Button1" TYPE="BUTTON" VALUE="Click Here"></form>
</body>
</html>
I hope that this is what you are looking for and i hope it helps, good luck
This post has been edited by ayman_mastermind: 28 Jun, 2009 - 06:25 AM