class js.html.History

Available on js

Returns a reference to the History object, which provides an interface for manipulating the browser session history (pages visited in the tab or frame that the current page is loaded in).

Documentation for this class was provided by MDN.

Instance Fields

var length:Int

Read-only. Returns the number of elements in the session history, including the currently loaded page. For example, for a page loaded in a new tab this property returns 1.

var state:Dynamic

Returns the state at the top of the history stack. This is a way to look at the state without having to wait for a popstate event. Read only.

function back():Void

function forward():Void

function go(distance:Int):Void

function pushState(data:Dynamic, title:String, ?url:String):Void

function replaceState(data:Dynamic, title:String, ?url:String):Void