'pixelLeft' Example : pixelLeft « CSS « HTML / CSS






'pixelLeft' Example

    
<html>
<head>
<script language="JavaScript">
    function function1(){
        document.all.myDiv.style.pixelLeft = 500 
    } 
</script>
</head>
<body>
<div id="myDiv" 
     style="background-color:#ccffcc; 
            position:absolute; 
            width:200;
            cursor:hand"; 
     onclick="function1()">
     Click on this div element to set pixelLeft to 500.
</div>
</body>
</html>

    
      
      








Related examples in the same category