'posTop' Example : posTop « CSS Attributes and Javascript Style Properties « HTML CSS Reference






'posTop' Example

    
<head>
<script language="JavaScript">
    function function1(){
        myDiv.style.posTop = 500; 
    }
</script>
</head>
<body>
<div id="myDiv" 
     style="background-color:#ccffcc; 
            position:absolute; 
            width:300;
            cursor:hand"; 
     onclick="function1()">
     Click your mouse.
</div>
</body>

    
      
      








Related examples in the same category

1.'posTop' Syntax and Note
2.'posTop' is applied to