Interface NavigationStarted

All Superinterfaces:
Event, NavigationEvent

public interface NavigationStarted extends 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 Type
    Method
    Description
    default boolean
    Returns true if the navigation is taking place in the main frame.
    default boolean
    Returns true if the navigation will be performed in the scope of the same document.
    default Navigation
    Returns the Navigation instance initiated this event.
    default String
    url()
    Returns a string that represents the URL of the navigation.
  • Method Details

    • url

      default String url()
      Returns a string that represents the URL of the navigation.
    • isSameDocument

      default boolean isSameDocument()
      Returns true if the navigation will be performed in the scope of the same document.
    • isInMainFrame

      default boolean isInMainFrame()
      Returns true if the navigation is taking place in the main frame.
      Since:
      7.5