HTML Button works like a Link or Anchor tag

There are many type of solutions, but the best found is,

<button type="reset" onclick="location.href='http://www.example.com'">
    www.example.com
</button>
this works well rather then type="submit" in this case.
Because, If you are using button, inside the form, type="reset" will help you prevent from Form action.
HTML Posted on 2016-04-13 02:32:38