I see - that's a really good explanation of that looping thing - I was just spitting it out parrot-style before, but I get it completely now.
Now I'm playing around with the settings to make it sink into my soft brain!
- with the script below, it's now saying 'checked is null or not an object' - the trouble is I can't see what is different apart from I've renamed the var?
<html>
<head>
<script language="JavaScript">
function evaluate()
{
var radiotype = document.getElementsByName=("type");
for(var i=0;i<radiotype.length;i++)
{
if(radiotype[i].checked)document.getElementById("result").innerHTML=radiotype[i].value;
}
}
</script>
</head>
<body>
Type in name: <input type="textbox" id="name"><br />
<form>
<input type="radio" name="type" value="First type"> First type
<br />
<input type="radio" name="type" value="2nd Type"> 2nd Type
<br />
</form>
<input type="submit" value="Evaluate" onclick="evaluate()">
<div id="result"></div>
</body>
</html>