var link = document.getElementById('link'); link.style.top= (window.innerHeight-20) + 'px' ; link.style.left= '8px' ;