Share via


query Variable 

{query} Variable

Retrieves the search string from Toolbar’s Search box. The button combines the search string with the URL of the search target to form a complete HTML search command. For example,

<searches>

   <url href="https://msnbc.msn.com/?search=MSNBC&amp;q={query}&amp;id=11881780&amp;FORM=AE&amp;os=0&amp;gs=1&amp;p=1" />

</searches>

Scope

Element

Attribute that can Use Variable

<url>
(in <searches>)

href

 

Remarks

Use the encoding attribute in the <url> element to control how the search term is encoded.  By default, the search string is encoded as utf-8.

Important   If your custom button will be distributed internationally, make sure that you have properly encoded the character set for the {query} variable. For more information, see String Encoding for Button Variables.

To make a suggestion or report a bug about Help or another feature of this product, go to the feedback site.