Click to See Complete Forum and Search --> : getting a button click to call a url


zonome
05-02-2003, 11:06 AM
Is it possible to call a url when you click on a button in a web page?


so when the users click on Curve Source Page button they are taken to another web page.

<INPUT TYPE="button" value="Curve Source Page" onClick="">

thanks

requestcode
05-02-2003, 11:09 AM
Sure. Here is one way:
<INPUT TYPE="button" value="Curve Source Page" onClick="location.href='somepage.html'">

Just make sure that you use single quotes inside of the double quotes.

zonome
05-02-2003, 11:34 AM
Thanks