'fontSize()' Example : fontSize « Javascript Methods « JavaScript Reference

'fontSize()' Example

    
<html>
<body>

<button onclick="var myS = new String('Sample String'); 
                 document.write('regular string'+myS.fontsize(7));">
                 change the string font size
</button>

</body>
</html>

    
      
      








Related examples in the same category

1.'fontSize()' Syntax, Parameters and Note
2.'fontSize()' is applied to