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.


<INPUT Type="BUTTON" VALUE="Home Page" ONCLICK="window.location.href=''">

Let me know if you have any questions.

Share Button

Add a Comment