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






'posLeft' Example

    
<head>
<script language="JavaScript">
    function function1(){
        myDiv.style.posLeft = 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.'posLeft' Syntax and Note
2.'posLeft' is applied to