NavigationHistory

external class NavigationHistory(source)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
external fun canGoBack(): Boolean

Whether the browser can go back to previous web page.

Link copied to clipboard
external fun canGoForward(): Boolean

Whether the browser can go forward to next web page.

Link copied to clipboard
external fun canGoToOffset(offset: Double): Boolean

Whether the web page can go to the specified relative offset from the current entry.

Link copied to clipboard
external fun clear()

Clears the navigation history.

Link copied to clipboard
external fun getActiveIndex(): Double

The index of the current page, from which we would go back/forward or reload.

Link copied to clipboard

WebContents complete history.

Link copied to clipboard
external fun getEntryAtIndex(index: Double): NavigationEntry

Navigation entry at the given index.

Link copied to clipboard
external fun goBack()

Makes the browser go back a web page.

Link copied to clipboard
external fun goForward()

Makes the browser go forward a web page.

Link copied to clipboard
external fun goToIndex(index: Double)

Navigates browser to the specified absolute web page index.

Link copied to clipboard
external fun goToOffset(offset: Double)

Navigates to the specified relative offset from the current entry.

Link copied to clipboard
external fun length(): Double

History length.

Link copied to clipboard
external fun removeEntryAtIndex(index: Double): Boolean

Removes the navigation entry at the given index. Can't remove entry at the "current active index".

Link copied to clipboard
external fun restore(options: RestoreOptions): Promise<Void>

the promise will resolve when the page has finished loading the selected navigation entry (see did-finish-load), and rejects if the page fails to load (see did-fail-load). A noop rejection handler is already attached, which avoids unhandled rejection errors.