History

History

package js-html

Available on js

The History interface allows to manipulate the browser session history, that is the pages visited in the tab or frame that the current page is loaded in.

Documentation History by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Variables

read only length:Int

Returns an Integer representing 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.

scrollRestoration:ScrollRestoration

Allows web applications to explicitly set default scroll restoration behavior on history navigation. This property can be either auto or manual.

read only state:Dynamic

Returns an any value representing 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.

Methods

back ():Void

Throws:

null DOMError

forward ():Void

Throws:

null DOMError

go (delta:Int = 0):Void

Throws:

null DOMError

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

Throws:

null DOMError

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

Throws:

null DOMError

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/History.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部