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






'pixelRight' Example

    
<html>
<head>
<script language="JavaScript">
    function function1(){
        document.all.myDiv.style.pixelRight = 500; 
    } 
</script>
</head>
<body>
<div id="myDiv" 
     style="background-color:#EEEEEE; 
            position:absolute; 
            width:300;
            cursor:hand"; 
     onclick="function1()">
     Click to send it to 500 px from the right.
</div>
</body>
</html>

    
      
      








Related examples in the same category

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