Radio buttons in a form
<html> <head> <script type="text/javascript"> function check(browser){ document.forms[0].answer.value=browser } </script> </head> <body> <form>Select which browser is your favorite:<br> <input type="radio" name="browser" onclick="check(this.value)" value="Internet Explorer">Internet Explorer<br> <input type="radio" name="browser" onclick="check(this.value)" value="Netscape">Netscape<br> <input type="radio" name="browser" onclick="check(this.value)" value="Opera">Opera<br> <br> <input type="text" name="answer" size="20"> </form> </body> </html>