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






'zoom' Example

    
<html>
<body>
<div id="myDiv" 
     style="width:100pt; 
            background-color:beige;">
www.java2s.com

</div>
<button onclick="myDiv.style.zoom='200%'">Zoom 200%</button>
<button onclick="myDiv.style.zoom='100%'">Zoom 100%</button>
</body>
</html>

    
      
      








Related examples in the same category

1.'zoom' Syntax and Note
2.'zoom' Possible Values
3.'zoom' is applied to