For buttons, we have the onclick attribute to call a JavaScript function, but how to make a hyperlink work like a button? 
In addition, how to use a hyperlink to submit a form or do anything else a button can do?
For buttons, we have the onclick attribute to call a JavaScript function, but how to make a hyperlink work like a button? 
In addition, how to use a hyperlink to submit a form or do anything else a button can do?
 
    
    <a href="javascript:void(0)" onclick="someFunction()">Click</a>
 
    
    <a href=# onClick=alert('hi.'),false>Click</a>
a { -moz-appearance: button; } // or -webkit-
