Safari Developer Library

Developer

SafariBeforeNavigateEvent Class Reference

Options
Deployment Target:

On This Page

SafariBeforeNavigateEvent

Instances of the SafariBeforeNavigateEvent class are used to notify listeners when the user navigates to a new page, before the page is loaded. You can use the preventDefault method to prevent the new page from loading.

The event type for this class is beforeNavigate.

This event does not bubble.

  • url Property

    The URL that the user is navigating to.

    Declaration

    readonly attribute DOMString url;