'width' Example : Width « Style Layout « JavaScript DHTML






'width' Example

 
    
<html>
<body>
<pre id="myPre" 
     style="font-size:14pt;">This text is embedded within pre tags.</pre>
<script language="JavaScript">
    document.all.myPre.width = "300";
</script>
</body>
</html>

    
      
        
  








Related examples in the same category

1.div.style.width="500px";