button href not working code example
Example: button as href
<button onclick="location.href='http://www.example.com'" type="button">
www.example.com</button>
<button onclick="location.href='http://www.example.com'" type="button">
www.example.com</button>