Radio action : RadioButton Radio « Form Control « JavaScript DHTML






Radio action

  
<html>
<head>
  <title>GUI Example</title>
  <script type="text/javascript">
  <!--
    function fsearch(aForm){
      alert ("search");
    }
    function foptions(aForm){
      alert ("option");
    }
    //-->
  </script>
</head>
<body>
  <h3>
    My search form
  </h3>
  <hr>  <form>
    Find:
    <input type="text" name="tfield" size="40">
    <br>
    <input type="radio" name="search">
    Simple Search
    <br>
    <input type="radio" name="search">
    Extended Search
    <br>
    <input type="button" name="bsearch" value="Search" onclick="fsearch(this.form)">
    <input type="button" name="boptions" value="More options" onclick="foptions(this.form)">
  </form>
</body>
</html>


           
         
    
  








Related examples in the same category

1.'defaultChecked' Example
2.Radio Button status Example
3.Check a Radio Button
4.Radio buttons in a form
5.Using the onPropertyChange Property
6.Methods and Properties of the Radio Object
7.Determining the Value of the Selected Radio Button
8.Scripting a Group of Radio Objects
9.Finding the Selected Button in a Radio Group
10.An onClick event Handler for Radio Buttons
11.Get the radio button selection
12.Get the select radio button and its value
13.Cycle the selected radio buttons