Ejemplo:
Código HTML:
<script type="text/javascript"> for (i = 0; i < radio.length; i++) if radio[i].checked = true and value.windows ; document.write("windows"); if radio[i].checked = true and value.linux ; document.write("linux"); if radio[i].checked = true and value.osx; document.write("osx"); if radio[i].checked = true and value.other ; document.write("other"); } </script> <form name="form"> <input type="radio" name="so" value="windows">Windows <input type="radio" name="so" value="linux">Linux <input type="radio" name="so" value="osx">OSX <input type="radio" name="so" value="other">Other </form>