title: javascript getElementByTagName
body: <p>The question is to create a function <code>showLink()</code> which has a variable <code>sIndx</code> that points to  the index of the selected option in the current selection list.</p>
  
  <pre><code>   &lt;select name="executive" id="executive" class="optionLinks"&gt;
        &lt;option value="#"&gt;Select a Web site&lt;/option
        &lt;option value="http://www.whitehouse.gov"&gt;The White House&lt;/option&gt;
        &lt;option value="http://www.usda.gov"&gt;Department of Agriculture&lt;/option&gt;             
     &lt;/select&gt;
     &lt;select name="legislative" id="legislative" class="optionLinks"&gt;
        &lt;option value="#"&gt;Select a Web site&lt;/option&gt;
        &lt;option value="http://www.house.gov"&gt;House Web Site&lt;/option&gt;
        &lt;option value="http://www.house.gov/house  &lt;/option&gt;
        &lt;option value="http://clerk.house.gov/"&gt;Clerk of the House&lt;/option&gt;     
     &lt;/select&gt;
     &lt;select name="judicial" id="judicial" class="optionLinks"&gt;
        &lt;option value="#"&gt;Select a Web site&lt;/option&gt;
        &lt;option value="http://www.uscourts.gov"&gt;U.S. Courts&lt;/option&gt;
        &lt;option value="http://www.uscourts.gov/supremecourt.html"&gt;U.S.Supreme              &lt;/select&gt;   
  </code></pre>
  
  <p>My answer:</p>
  
  <pre><code>function Link()  {   
     sIndex = document.getElementByTagName("select")[this.select].options[selectedIndex];
     location.href = sindex.value;
  } 
  </code></pre>
  
  <p>The webpage is not loading, I still see the options clicked, any help?</p>