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 boolean
Returnstrue
if the navigation is taking place in the main frame.default boolean
Returnstrue
if the navigation will be performed in the scope of the same document.default Navigation
Returns theNavigation
instance initiated this event.default String
url()
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()Returnstrue
if the navigation will be performed in the scope of the same document. -
isInMainFrame
default boolean isInMainFrame()Returnstrue
if the navigation is taking place in the main frame.- Since:
- 7.5