Safari Developer Library

Developer

SafariBeforeSearchEvent Class Reference

Options
Deployment Target:

On This Page

SafariBeforeSearchEvent

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Not Applicable Not Applicable

The SafariBeforeSearchEvent event fires before the Smart Search Field performs a search, allowing you to intercept the query and execute an alternate task. SafariBeforeSearchEvent can be used with SafariBeforeNavigateEvent to determine what the user intends to do in the Smart Search Field.

  • query Property

    The query inputted by the user.

    Declaration

    JavaScript

    readonly attribute DOMString query;

    Availability

    Available in Safari 6 and later.