-4

I want to be able to change the position of a link and just wonder how i do that?

<a id="dwnlnk" href="LINK" style="position:absolute; top:10px; left:618px;" >link</a>

i want to change the top:10px; to top:-30px; for example.

HTMLnoob
  • 1
  • 1
  • 1

1 Answers1

0
document.getElementById('dwnlnk').style.top = '30px'
Sanchay Kumar
  • 566
  • 5
  • 11