SafariBeforeSearchEvent Class Reference
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.
Reading From the Toolbar
The query inputted by the user.
readonly attribute DOMString query;