Quantcast
Channel: w3mentor » Javascript
Viewing all articles
Browse latest Browse all 100

Positioning an element using Javascript DOM

$
0
0
<script language="JavaScript" type="text/JavaScript"> function position() { var el = document.getElementById("element"); el.style.left = "0px"; el.style.posLeft = 0; el.style.top = "0px"; el.style.posTop = 0; } window.onload = position; </script> <h1>w3mentor</h1> <p>Some sample text. Some sample text. Some sample text. Some sample text. Some sample text. Some sample text. Some sample text. Some sample text. Some sample text. […]
Continue reading...

Viewing all articles
Browse latest Browse all 100

Trending Articles