Safari Developer Library

Developer

SafariBeforeNavigateEvent Class Reference

Options
Deployment Target:

On This Page

SafariBeforeNavigateEvent

Inheritance


Conforms To


Not Applicable

Import Statement


Not Applicable Not Applicable

Availability


Available in Safari 5.1 and later.

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

    JavaScript

    readonly attribute DOMString url

    Availability

    Available in Safari 5.1 and later.