Search code examples
hyperlinkgoogle-search

Is it possible to make a link for Google search results page with a search word?


Can I create a link which will open a Google search results page in a new tab with a specific search word?

Consider 10 topics names are displayed, when user clicks on a topic1 (named as photography), a new tab should be opened and that should display Google search results for that topic1 (search results of 'photography').

Is it possible to implement?


Solution

  • You just need to populate the 'q' URL parameter, eg

    <a href="https://www.google.com/search?q=photography" target="_blank">Photography</a>
    

    Or if you want to specifically return an image search for example, then pass the 'tbm' URL parameter, eg

    <a href="https://www.google.com/search?q=photography&tbm=isch" target="_blank">Photography</a>