Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirecting to another page

Status
Not open for further replies.

ganusha

Programmer
May 1, 2002
28
US
hi
This is my first day with ASP

I've a button called 'home' and on clicking this i need to go to homepage.asp.

this is my code
<script language=&quot;vbscript&quot; type=&quot;Text/vbscript&quot;>
sub gohome()

end sub
</script>
<input type=button name=cmdHome onclick= 'gohome()'>

what should i include inside the function in order to call homepage.asp
 
what you are doing here is not ASP. it is client side vbscript.
although, if you know this and you really want to do this via vbscript client side then
<html>
<head>
<script language=&quot;vbscript&quot; type=&quot;Text/vbscript&quot;>
sub gohome()
Location.href = &quot;homepage.asp&quot;
end sub
</script>

</head>

<body>
<form>
<input type=button name=cmdHome Value=&quot;go home&quot; onclick=&quot;gohome()&quot;>

</body></form>
</html>
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top