[SOLVED] No Properties?
Posted: Sun Feb 20, 2005 3:38 pm
Hello All,
I'm getting a "document.forms.form1[...] has no properties" error from the code below. The form is called form1 and it does exist later in the document, but shouldn't the color_checks() be called after the body loads? (via the run() function)
Any ideas? Any help would be greatly appreciated, still very new!
Philip
I'm getting a "document.forms.form1[...] has no properties" error from the code below. The form is called form1 and it does exist later in the document, but shouldn't the color_checks() be called after the body loads? (via the run() function)
Any ideas? Any help would be greatly appreciated, still very new!
Philip
Code: Select all
<head>
<script type="text/javascript">
function color_checks( which )
{ document.forms.form1їwhich].checked = true;}
</script>
<script type="text/javascript">
function run()
{var exe = color_checks ('YellowB1'); }
</script>
</head>
<body onLoad="run()">