<html> <body> <button onclick="var myS = new String('Sample String'); document.write('regular string'+myS.fontsize(7));"> String: FONTSIZE</button> </body> </html>