Just copy and paste this code and replace url link as per your need.
<a href="http://www.google.com" onclick="window.open('http://sakhihosting.in')">Click</a>
<form> with onclick and hrefonclick and hrefusing the <form> tag and styling them using CSS into different colors and sizes.<form> which will automatically generate the button ..<form>
<input type="button" value="Put Your Text Here"onclick="window.location.href='http://www.hyperlinkcode.com/button-links.php'"/>
</form><form>
<input style="width: 300px; padding: 20px; cursor: pointer; box-shadow: 6px 6px 5px; #999; -webkit-box-shadow: 6px 6px 5px #999; -moz-box-shadow: 6px 6px 5px #999; font-weight: bold; background: #ffff00; color: #000; border-radius: 10px; border: 1px solid #999; font-size: 150%;" type="button" value="Put Your Text Here" onclick="window.location.href='http://www.hyperlinkcode.com/button-links.php'" />
</form>class attribute has been added with the value MyButton so it can select the CSS rules from the stylesheet. Change the MyButton values as required.<form>
<input class="MyButton" type="button" value="Your Text Here"onclick="window.location.href='http://www.hyperlinkcode.com/button-links.php'"/>
</form><head>
<style>
input.MyButton {
width: 300px;
padding: 20px;
cursor: pointer;
font-weight: bold;
font-size: 150%;
background: #3366cc;
color: #fff;
border: 1px solid #3366cc;
border-radius: 10px;
}
input.MyButton:hover {
color: #ffff00;
background: #000;
border: 1px solid #fff;
}
</style>
</head><style> belongs in the <head> section of HTML documents. Change color and other properties as required. This Internal CSS code will style button links only on the page where the code is inserted. If button links are required on multiple pages on the same website, an external stylesheet is recommended. See example below.<form>
<input class="MyButton" type="button" value="Your Text Here"onclick="window.location.href='http://www.hyperlinkcode.com/button-links.php'"/>
</form>input.MyButton {
width: 300px;
padding: 20px;
cursor: pointer;
font-weight: bold;
font-size: 150%;
background: #3366cc;
color: #fff;
border: 1px solid #3366cc;
border-radius: 10px;
-moz-box-shadow:: 6px 6px 5px #999;
-webkit-box-shadow:: 6px 6px 5px #999;
box-shadow:: 6px 6px 5px #999;
}
input.MyButton:hover {
color: #ffff00;
background: #000;
border: 1px solid #fff;
}