| 
  
 <html>
 <head>
 <title>String formatting methods</title>
 </head>
 <body>
 <script type="text/javascript">
 var someString = new String("This is the test string");
 
 document.writeln(someString.big());
 document.writeln(someString.blink());
 document.writeln(someString.sup());
 document.writeln(someString.strike());
 document.writeln(someString.bold());
 document.writeln(someString.italics());
 document.writeln(someString.small());
 
 document.writeln(someString.link('http://www.java2s.com'));
 </script>
 </body>
 </html>
 
 
 
 
 |