Function That Wraps Document.Write, Adding a Line Break : Function : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Function »

 

Function That Wraps Document.Write, Adding a Line Break



<HTML>
<BODY>
<CENTER>
<H1>
<SCRIPT
   function myFunction (textIn) { 
      document.write (textIn + "<br>")
   
   myFunction ("I")
   myFunction ("did")
   myFunction ("it")
   myFunction ("my")
   myFunction ("way!")
   </SCRIPT>
</CENTER>
</H1>
</BODY>
</HTML>


           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Language Basics
» Function