When I use the following in Mozilla I get the error
document.getElementById(rad_name) has no properties
Can someone please explain this and how to rectify it
<script language="JavaScript">
<!--
rad_on="radio_on.gif"
function rad_click(rad_name){
document.getElementById(rad_name).src = rad_on
}
// -->
</script>
<img onclick="rad_click(this.name)" src="radio_off.gif" name="mypic">
document.getElementById(rad_name) has no properties
Can someone please explain this and how to rectify it
<script language="JavaScript">
<!--
rad_on="radio_on.gif"
function rad_click(rad_name){
document.getElementById(rad_name).src = rad_on
}
// -->
</script>
<img onclick="rad_click(this.name)" src="radio_off.gif" name="mypic">
Comment