"yawnmoth" <terra1024@yahoo.comwrote in message
news:1161295653.085091.145070@m7g2000cwm.googlegro ups.com...
Quote:
>
nutso fasst wrote:
Quote:
"yawnmoth" <terra1024@yahoo.comwrote in message
news:1161292256.453233.189670@e3g2000cwe.googlegro ups.com...
<a href="#" onclick="for(var i=0; !document.forms[0].testvar[i]; i++){};
alert(document.forms[0].testvar[i].value); return false">click me</a>
Hmmm - I guess we posted at the same time. Anyway, that seems to do it
Oops. Actually, it won't do it because I left out the checked property in
the test. I meant to type:
<a href="#" onclick="for(var i=0; !document.forms[0].testvar[i].checked;
i++){};
alert(document.forms[0].testvar[i].value); return false">click me</a>
But even that is a bit dangerous. Prolly should be:
<a href="#" onclick="for(var i=0; !document.forms[0].testvar[i].checked && i
< document.forms[0].testvar.length; i++){};
alert(document.forms[0].testvar[i].value); return false">click me</a>
SORRY!
nf