Dear All!
i have probelms with the program!
These are 3. functions.
Click on each button shoul dgive alert box with different text.
It happens allways the third one!
The4y tol dme to pass variables to a fundciton.
How to do that=
?
Here is the program!
Please help who can!
Regards,
M
<script type=”text/javascript”>
function myfunction(){alert(“A dog”);}
</script>
<form><input type=”button” onclick=”myfunction()” value=”a)”></form>
<br>
<script type=”text/javascript”>
function myfunction(){alert(“A cat “);}
</script>
<form><input type=”button” onclick=”myfunction()” value=”b)”></form>
<script type=”text/javascript”>
function myfunction(){alert(“A mouse”);}
</script>
<form><input type=”button” onclick=”myfunction()” value=”C”></form>
?