Pass value to a function : Function Parameters : Function JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Function » Function Parameters »

 

Pass value to a function

















<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
function yourMessage(quote)
{
    alert(quote);
}
//  -->
</script>
</head>
<body>
<P>Click <input type="button" value="AAA" onClick="yourMessage('AAA')"for a message!</p>
<br>
<P>Click <input type="button" value="BBB" onClick="yourMessage('BBB')"for another message!</p>
</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Function
» Function Parameters