Mega Code Archive

 
Categories / JavaScript Reference / Javascript Methods
 

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>