You may have wondered how to make a standard browser button such as the 'Submit' button into a link. This would allow you to create a nice button with appropriate text, instead of a boring underlined link. This is the affect we want :
This is simple enough to do, using the onclick event to listen for the user pressing the button, and then the javascript location.href property to redirect us to the correct page. Here's the full code:
<input type=button value="Click here for DHTML code"
onclick="javascript:location.href='/dhtml/index.html'">
As usual, keep all the above on one line to ensure it works properly.