Radio buttons in a form : RadioButton Radio : Form Control JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Form Control » RadioButton Radio »

 

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>




           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Form Control
» RadioButton Radio