title: Redirect to Page based on Input Value
body: <p>I am attempting to create a form on the page that requires the user to input text. Once the form is submitted, the user will then be redirected to the page assigned to it. My question is where am I going wrong and how should I resolve this issue? Could someone include a JSFiddle or Codepen.io pen for deminstration purposes?</p>
  
  <p>For example:</p>
  
  <ol>
  <li>User enters and submits "<strong>123456</strong>"</li>
  <li>User is then redirected to the page www.domain.com/<strong>123456</strong></li>
  </ol>
  
  <p>I am assuming it is something like this:</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;form&gt;
      &lt;input id="projectid" maxlength="6"&gt;
      &lt;input onclick="findProject()" type="submit" value="Go"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Javascript</p>
  
  <pre><code>function findProject(){
      document.location = document.getElementById('projectId').value();
  }
  </code></pre>
  
  <p>I have included my own pen: <a href="http://codepen.io/ShaneHicks/pen/eZbbLz" rel="nofollow">http://codepen.io/ShaneHicks/pen/eZbbLz</a></p>