Form Button as a Link
Example of Script
Grab
the Code
<FORM> <INPUT TYPE="button" onClick="location.href ='http://www.pcrobin.com/' ;" VALUE="PCRobin Home Page"> </FORM>
Explanation of Code
This example uses a
<FORM>
to create a button,
<INPUT TYPE="button">
. The button has been given an
onClick
event handler that set the current document URL,
location.href
.
Copyright © 2001 John H. Bolgiano, Jr. - All rights reserved
Modified with permission for educational use by Roberta Bush