Call function inside a function : Function Call : Function JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Function » Function Call »

 

Call function inside a function

















<HTML>

<HEAD>

<SCRIPT language="JavaScript">
<!--
function get_added_text(textpart1,textpart2)
{
 var added_text=textpart1+" "+textpart2;
 return added_text;
}

function write_text()
{
 var thetext=get_added_text("Hi","there!");
 document.write(thetext);
}

//-->
</SCRIPT>

</HEAD>

<BODY>
<SCRIPT language="JavaScript">
<!--
write_text();
//-->
</SCRIPT>

</BODY>

</HTML>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Function
» Function Call