Menu
Could someone help me by explaining why the second button in the script below doesn’t work? I just wanted to use my own image instead of the default. Many thanks for any help.
<input type=”button” name=”Button” value=”Calculate Repayment” onclick=”CalcRepay()” class=”BodyText”>
<input name=”Button” type=”image” src=”images/calculate.gif” border=”0″ value=”Calculate Repayment” onclick=”CalcRepay()”class=”BodyText”>
<i>
</i><html>
<head>
<script language="Javascript">
function CalcRepay()
{
alert ("function hit")
}
</script>
</head>
<body>
<input type="button" name="Button" value="Calculate Repayment" onclick="CalcRepay()" class="BodyText">
<input name="Button" type="image" src="sample.gif" border="0" value="Calculate Repayment"
onclick="CalcRepay()"class="BodyText">
</body>
</html>
0.1.9 — BETA 5.18