title: 2 Select options Combine values and link
body: <p>I need to combine two values and link to the selected site.</p>
  
  <p>ex. <code>select&gt; Google&gt; select&gt;Translate</code></p>
  
  <p>join two values</p>
  
  <pre><code>T2 [translate] T1 [.google.com] = translate.google.com Go
  </code></pre>
  
  <p><strong>JS</strong></p>
  
  <pre><code>&lt;script&gt;
  function goToNewPage() {
    var g=document.getElementById('target').value;
    {
      window.location.href = document.getElementById('target').value;
    } 
  }
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;form name="dropdown"&gt;                    
     &lt;select name="selected" id="target2" &gt;
        &lt;option selected&gt;Select...&lt;/option&gt;
        &lt;option value=".google.com/"&gt;Google&lt;/option&gt;
        &lt;option value=".search.com/"&gt;Bing&lt;/option&gt;
     &lt;/select&gt;
  
     &lt;select name="selected" id="target" &gt;
        &lt;option selected&gt;Select...&lt;/option&gt;
        &lt;option value="http://translate"&gt;Translate&lt;/option&gt;
        &lt;option value="http://translate/"&gt;Translator&lt;/option&gt;
     &lt;/select&gt;
     &lt;input type="button" value="Go" onclick="goToNewPage(document.dropdown.selected)"&gt;
  &lt;/form&gt;
  </code></pre>