Output the HTML tags by using the document.write : write : Document JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Document » write »

 

Output the HTML tags by using the document.write

















<HTML>
<BODY>
<SCRIPT language="JavaScript">
<!--
    var myheading="This is My Web Page!";
    var linktag="<A HREF='http://www.navioo.com'>Web Site Link!</A>";
    var sometext="This text can be affected by other statements.";
    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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Document
» write