1
Reply

How to create a HyperLink Button in javasript/CSS?

Deepak  Kamboj

Deepak Kamboj

11y
586
0
Reply

    You can do something like this, var mydiv = document.getElementById("myDiv"); var aTag = document.createElement('a'); aTag.setAttribute('href',"linkhere.html"); aTag.innerHTML = "link text"; mydiv.appendChild(aTag);