title: How can i navigate to URLs with Select?
body: <p>I want to navigate on an site with a select box. When a user change the select-option, it opened the url of this option.</p>
  
  <p>This is my select:</p>
  
  <pre><code>&lt;select id="navigation"&gt;
     &lt;option value="/" selected&gt;start&lt;/option&gt;
     &lt;option value="/thoughts"&gt;thoughts&lt;/option&gt;
     &lt;option value="/work"&gt;work&lt;/option&gt;
     &lt;option value="/methods"&gt;methods&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>And this is my javascript:</p>
  
  <pre><code>document.getElementById("navigation").onchange = function() {
    var selectedOption = this.value;
    window.location.href = "http://niklasjordan.com" + selectedOption;
  }
  </code></pre>
  
  <p>But this code doesnt work. Anybody an idea why?</p>