Interface NavigationStarted
- All Superinterfaces:
Event,NavigationEvent
An event indicating that the navigation has been started. This is also fired by same-document
navigations, such as fragment navigations or pushState/replaceState, which will not result in a
document change. To filter these out, use the
isSameDocument() method.
Note that more than one navigation can be ongoing in the same frame at the same time
(including the main frame). Note that there is no guarantee that the NavigationFinished
will be fired for any particular navigation before this event is called on the next.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturnstrueif the navigation is taking place in the main frame.default booleanReturnstrueif the navigation will be performed in the scope of the same document.default NavigationReturns theNavigationinstance initiated this event.default Stringurl()Returns a string that represents the URL of the navigation.
-
Method Details
-
url
Returns a string that represents the URL of the navigation. -
isSameDocument
default boolean isSameDocument()Returnstrueif the navigation will be performed in the scope of the same document. -
isInMainFrame
default boolean isInMainFrame()Returnstrueif the navigation is taking place in the main frame.- Since:
- 7.5