Output the html tags : write « Document « JavaScript DHTML






Output the html tags

  


<HTML>
<BODY>
<SCRIPT language="JavaScript">
    var myheading="This is My Web Page!";
    var linktag="<A HREF='http://www.java2s.com'>java2s</A>";
    var sometext="text";
    var begineffect="<U>";
    var endeffect="</U>";
    var newsection="<BR>";
    document.write(myheading);
    document.write(newsection);
    document.write(begineffect);
    document.write(sometext);
    document.write(endeffect);
    document.write(newsection);
    document.write(linktag);
    document.write(newsection);
    document.write(sometext);
</SCRIPT>
</BODY>
</HTML>

   
    
  








Related examples in the same category

1.Append html tag value with string value