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






'posRight' Example

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