problem with onclick

Giganews Newsgroups
Subject: problem with onclick
Posted by:  Draken (lord_draken_kor…
Date: Thu, 3 Jul 2003

I have a function in the head section of a html and call it from a radio
button with onClick="menu();" but IE tells me that the object doesnt support
this method or property. What is the problem with that? I have tried
numerous ways around it but to no avail.

function menu() {
for (i=0;i<=2;i++) {
if ([i].checked=="1") {
parent.main.location.href="[i].value + '.html'" }
<form name="menuform">
<radio name="form" value="news" onClick="menu();">

Thank you for your help,