search

Home  >  Q&A  >  body text

HTML search link using default search engine

<p>I want to create a search link on my page. </p> <p>I can easily create a link using Google: </p> <p><code>A <a href="https://www.google.com/search?q=password manager" target="_blank">password manager</a> makes it easy to . ..</code></p> <p>Is it possible to create a link that uses the browser's default search engine? </p>
P粉930534280P粉930534280508 days ago501

reply all(1)I'll reply

  • P粉585541766

    P粉5855417662023-08-16 18:16:45

    No.

    The browser will not expose the following content:

    • The identity of the default search engine selected by the user
    • The ability to pass search terms to that search engine

    … Via any API accessible to the website the user is visiting.

    reply
    0
  • Cancelreply