Append html tag value with string value : write « Document « JavaScript DHTML






Append html tag value with string value

 

<HTML>
<BODY>
<H1>
   <SCRIPT>
   var newLine = "<BR>";
   var One = "One";
   var splitLine = One + newLine + One;
   document.write(splitLine);
   </SCRIPT>
</H1>
</BODY>
</HTML>

   
  








Related examples in the same category

1.Output the html tags