title: Simple JavaScript search box
body: <p>I tried connecting the first text box, so it would turn it into a URL, and then when 'search' is clicked, it would jump to that website, not sure if it's impossible, or i'm just clueless, but would really appreciate some help, thank you in advance!</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
  
  &lt;head&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;script type="text/javascript"&gt;
      function link() {
        var link_s = document.getElementById('link_id').value;
        document.getElementById('link_str').innerHTML = link_s.link()
      }
    &lt;/script&gt;
  
    &lt;h2&gt; Search box &lt;/h2&gt;
    &lt;input type='text' id='link_id'&gt;
    &lt;input type='button' id='link_str' value='Search' onClick='link()'&gt;
  &lt;/body&gt;
  &lt;html&gt;</code></pre>
  </div>
  </div>
  </p>