WebContentsWillNavigateEventParams

Properties

Link copied to clipboard
abstract var frame: WebFrameMain

The frame to be navigated.

Link copied to clipboard
abstract var initiator: WebFrameMain?

The frame which initiated the navigation, which can be a parent frame (e.g. via window.open with a frame's name), or null if the navigation was not initiated by a frame. This can also be null if the initiating frame was deleted before the event was emitted.

Link copied to clipboard
abstract var isMainFrame: Boolean

True if the navigation is taking place in a main frame.

Link copied to clipboard
abstract var isSameDocument: Boolean

This event does not fire for same document navigations using window.history api and reference fragment navigations. This property is always set to false for this event.

Link copied to clipboard
abstract var url: String

The URL the frame is navigating to.