Funciton with arguments : Function : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Function »

 

Funciton with arguments



<html>
<head>

<script type="text/javascript">
function myfunction(txt){
    alert(txt)
}
</script>

</head>
<body>

<form>
<input type="button" onclick="myfunction('Hello')" value="Call function">
</form>

</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