Define HTML tags as the string variable : String Declaration : String JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » String » String Declaration »

 

Define HTML tags as the string variable

















<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 String
» String Declaration