My time is low. plz help me today. what is problem of this java script code?
[CODE]
<script language=”javascript”>
function Operation (Op)
{
var a= document.frm.txt1.value
var b=document.frm.txt2.value
a= 1*a
b= 1*b
if document.frm.txt3.value=’+’ var c= a+b;
else if document.frm.txt3.value=’-‘ var c= abs(a-b);
else if document.frm.txt3.value=’*’ var c= a*b;
else if document.frm.txt3.value=’/’ var c= a/b;
else var c= ‘gomsho baba’;
alert (c);
}
</script>
.
.
.
<body>
<form id=”frm” name=”form1″ method=”post”>
<label>
<input type=”text” name=”txt1″ />
<br />
<br />
</label>
<label>
<input type=”text” name=”txt2″ />
</label>
<p>
<label>
<input type=”text” name=”txt3″ />
</label>
</p>
<p>
<label>
<input type=”button” name=”Button” value=”Button” onclick=”operation()”; />
</label>
</p>
</form>
</body>
this button and code dont work, where is the problem?
thanks