[Solved] HTML turn a link into a button
in bootstrap you just add the button classes and it will look like a button <a class=”btn btn-default” … However, there is no reason you can’t just copy the onclick attribute to the anchor tag (or “href” as you keep calling it). From your code in the comments: <div id=’demo’></div> <a onclick=”document.getElementById(‘demo’).innerHTML=’Hello JavaScript!’; return false; … Read more