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






'pixelWidth' Example

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

    
      
      








Related examples in the same category

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