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






'posWidth' Example

    
<html>
<head>
<script language="JavaScript">
    function function1(){
        myDiv.style.posWidth = 20;
    } 
</script>
</head>
<body>
<div id="myDiv" 
     style="background-color:#EEEEEE; 
            position:absolute; 
            cursor:hand";
     onmouseover="function1()" 
     onclick="this.style.posWidth=600">
     Move your mouse in and click.
</div>
</body>
</html>

    
      
      








Related examples in the same category

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