Advertisement
RokiAdhytama

Markup Methods - Chapter 12-1

Jul 4th, 2022
766
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <html xmlns = "http://www.w3.org/1999/xhtml">
  3.    <head>
  4.       <title>XHTML Markup Methods of the String Object</title>
  5.  
  6.       <script type = "text/javascript">
  7.          <!--
  8.          var anchorText = "This is an anchor",
  9.              blinkText = "This is blinking text",
  10.              fixedText = "This is monospaced text",
  11.              linkText = "Click here to go to anchorText",
  12.              strikeText = "This is strike out text",
  13.              subText = "subscript",
  14.              supText = "superscript";
  15.        
  16.          document.writeln( anchorText.anchor( "top" ) );    
  17.          document.writeln( "<br />" + blinkText.blink() );    
  18.          document.writeln( "<br />" + fixedText.fixed() );    
  19.          document.writeln( "<br />" + strikeText.strike() );  
  20.          document.writeln(
  21.             "<br />This is text with a " + subText.sub() );    
  22.          document.writeln(
  23.             "<br />This is text with a " + supText.sup() );    
  24.          document.writeln(    
  25.             "<br />" + linkText.link( "#top" ) );
  26.          // -->
  27.       </script>
  28.  
  29.    </head><body></body>
  30. </html>
Advertisement
RAW Paste Data Copied
Advertisement