html make button open link

Posted by:

Looking for the proper way to make your html button open a link or┬ádirect to a web page instead of submit? Look no further, I just did it and here’s the code I used.

 

<FORM>
<INPUT Type="BUTTON" VALUE="Home Page" ONCLICK="window.location.href='http://www.summertreedesigns.com/'">
</FORM>



Let me know if you have any questions.
Cheers!

Share Button
0

Add a Comment