Search code examples
htmlformsgoogle-search

Google search form turns up mostly white page


I've got this super simple search form on my home page:

<form method="get" action="https://google.ca">
    <input type="text" placeholder="" name="q" autofocus>
</form>

When I type into it and press enter, it takes me to Google like I want, but then it just hangs on this white page. Happens in Chrome, Firefox, and Edge.

How can I make a form that successfully searches Google?

enter image description here


Solution

  • you have entered a incorrect URL Address https://www.google.co.in/?q=bacon

    You can try this this one:

    <form method="get" action="https://www.google.ca/search?">
        <input type="text" placeholder="" name="q" autofocus>
    </form>