problem with onclick

Giganews Newsgroups
Subject: problem with onclick
Posted by:  Draken (lord_draken_kor…@hotmail.com)
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.

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

Thank you for your help,
-Dave

Replies