dimanche 26 avril 2020

Html Search with top 5 before the search

I have a problem on my website. I hope someone of you has an Idea how to fix it.

I want to do a built in search bar for my website which searchs Google for the searchword but adds top 5 before it so like: top 5 [searchword]. (If the user types in bananas for instance. The website would open a new window with a Google search for: top 5 bananas)

I tried to find out how i could make this possible but I have no Idea how to do this.

I tried to build a html form:

            <form action="https://www.google.com/search" method="GET">
                <input type"text" name="q" placeholder="Search">
                <input type="submit" value="Search">
                </form>

But i can´t put the get form action to https://www.google.de/search?&q=top+5

I hope you can help me out with my question.




Aucun commentaire:

Enregistrer un commentaire