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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

make a button open a url

Status
Not open for further replies.

mattbold

Programmer
Oct 5, 2001
45
0
0
GB
hi i expect this is really easy to do, i think i used to know how but i've forgotten; as i havent done much vbscript, basically i have an INPUT TYPE="button" on my page and i want it to go to a different page when you click on it... can anyone please help me out?

thanks,
matt
 
yep!
You could write this in a sub:
Sub NavigateTo(sUrl)
Response.redirect sUrl
End Sub
or
<input type=button onclick=&quot;Javascript:window.location.href '
Hope this helps :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top