<SCRIPT LANGUAGE = "JavaScript">
function FonctionDeTest()
{
document.write ("Dans la fonction")
}
</SCRIPT>
<HTML>
<HEAD></HEAD>
<BODY>
<SCRIPT LANGUAGE = "JavaScript">
document.write ("Avant la fonction")
FonctionDeTest()
document.write ("Après la fonction")
</SCRIPT>
</BODY>
</HTML>
<SCRIPT LANGUAGE = "JavaScript">
function Fois2 (MonParametre)
{
return MonParametre * 2
}
</SCRIPT>
<HTML>
<HEAD></HEAD>
<BODY>
<SCRIPT LANGUAGE = "JavaScript">
document.write ( Fois2(33) )
</SCRIPT>
</BODY>
</HTML>
<HTML>
<HEAD></HEAD>
<BODY>
<SCRIPT LANGUAGE = "JavaScript">
<!--
document.write ( Multiplie (5,4) )
-->
</SCRIPT>
</BODY>
</HTML>
<BODY>
<SCRIPT LANGUAGE = "JavaScript">
var Additionner = Function("x",
"y", "return(x+y)")
document.write ( Additionner (2,3)
)
</SCRIPT>
</BODY>