Using the Function Object : Function : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Function »

 

Using the Function Object



<HTML>
<HEAD>
<TITLE>Using the Function Object</TITLE>
<BODY><H1>
<SCRIPT LANGUAGE="JavaScript"><!--
addBraces = new Function("s","return '['+s+']'")
document.write(addBraces("This"))
document.write(addBraces("is"))
document.write(addBraces("a"))
document.write(addBraces("test."))
// --></SCRIPT>
</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