title: <form action="https://www.google.com/search" method="GET"> has to redirect to the website when I type a URL in the input field
body: <p>I have a simple search input box in my webpage that has google search action to it.This is the code.</p>
  
  <pre><code>&lt;div className="search-container"&gt;
          &lt;form action="https://www.google.com/search" method="GET"&gt;
            &lt;input type="search" id="search" name="q" placeholder="Search Google or type URL" /&gt;
            &lt;button className="icon" type="submit"&gt;&lt;i className="small material-icons"&gt;search&lt;/i&gt;&lt;/button&gt;
          &lt;/form&gt;
        &lt;/div&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/y2AZH.png" rel="nofollow noreferrer">This is the image of search box</a></p>
  
  <p>So if i type anything for example like apple, it searches google for apple and displays the content. But if I type a url like <a href="http://facebook.com" rel="nofollow noreferrer">http://facebook.com</a>, it again searches google and displays the search result for facebook.</p>
  
  <p>But I need it to redirect to that particular website when I enter a url. If i enter <a href="http://facebook.com" rel="nofollow noreferrer">http://facebook.com</a> and press enter, It must redirect me to the facebook website and not to the google search results page for facebook.</p>
  
  <p>Please help me out in this. Thanks in advance.</p>