Search on the site and in the search engines
You can add a site search bar on the Turbo page that passes the search query to the search engines. Search results open in a separate window.
<form action="https://yandex.ru/search/?text={text}" method="GET"> <input type="search" name="text" placeholder="Search for good recipes" /> </form>
Copied to clipboard
Attribute | Description |
---|---|
action * | The site or the search engine URL https://example.com/search/{text} For example, to search in Yandex
Where do I find the search engine URL |
method | Takes only the GET value. |
name * | Name of the query parameter in which the search query is passed. For example, Yandex uses the text parameter:
|
type * | Takes only the search value. |
placeholder | The text displayed in the search bar by default. |
Attribute | Description |
---|---|
action * | The site or the search engine URL https://example.com/search/{text} For example, to search in Yandex
Where do I find the search engine URL |
method | Takes only the GET value. |
name * | Name of the query parameter in which the search query is passed. For example, Yandex uses the text parameter:
|
type * | Takes only the search value. |
placeholder | The text displayed in the search bar by default. |
*Required attribute.