title: Radio button on select navigation to URL
body: <p>I am newbie to java script and trying to achieve the following and was looking for suggestions:</p>
  
  <p>Create two radio buttons and whenever we select on radio button it should navigate to some URL like in the below example XYZ.com or ABC.com</p>
  
  <pre><code>&lt;html&gt;
  &lt;table width="450"&gt;
  &lt;tr&gt;
  &lt;td style="background-color:#FFFFFF;"&gt;&lt;h4&gt;Choose a Field&lt;/h4&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;&lt;/br&gt;
  &lt;form action="../"&gt;
  &lt;fieldset&gt;
  &lt;input type="RADIO" value="http://xyz.com"     name="userChoice" id="navRadio01"&gt;
   &lt;label for="navRadio01"&gt;XYZ&lt;/label&gt;&lt;br&gt; 
  &lt;input type="RADIO" value="http://abc.com"    name="userChoice" id="navRadio02" checked&gt;
          &lt;label for="navRadio02"&gt;ABC&lt;/label&gt;&lt;br&gt;  
  &lt;input type="BUTTON"  value="Go"    onclick="ob=this.form.userChoice;for(i=0;i&lt;ob.length;i++){
      if(ob[i].checked){window.open(ob[i].value,'_self');};}" style="color:#FFFFF;background-color:#E0E0E5;font-family:verdana;border-style:solid;" /&gt;
  &lt;/fieldset&gt;
  &lt;/form&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I have used the Go button in the above example how can we do this, without using the Go button and once selected navigate to that link.?</p>
  
  <p>Please advice. </p>
  
  <p>Thank you all in advance. </p>
  
  <p>-
  V</p>