Here you can find a number of examples on Java Script.Please find the various kinds of examples listed on the right side of this site. If you don't find anything on Java Script then please write to us or leave a commnet. We are pleased to help and find the solution of your problem.

Javascript: Call Function

<title>Call a function with two parameters</title>
<script language="javascript">
function multiple(n1,n2)
return n1*n2;

<script language="javascript">
function fun1()
var num1=f1.txt1.value;
var num2=f1.txt2.value;

<form name="f1">
<input type="text" name="txt1" value=2 size=10>
<input type="text" name="txt2" value=2 size=10>
<input type="button" onclick="fun1()" value="calculate" size=>


No comments:

Post a Comment