Liking cljdoc? Tell your friends :D

web.dom.History

The History interface allows manipulation of the browser session that is the pages visited in the tab or frame that the current is loaded in.

The History interface allows manipulation of the browser session
that is the pages visited in the tab or frame that the current
is loaded in.
raw docstring

backcljs

(back this)

Method.

The back method moves back one page in the session history. If is no previous page, this method call does nothing.

window.history.back()

See also: https://developer.mozilla.org/en-US/docs/Web/API/History/back

Method.

The back method moves back one page in the session history. If
is no previous page, this method call does nothing.

`window.history.back()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/History/back`
sourceraw docstring

currentcljs

(current this)

Property.

Returns a DOMString representing the URL of the active item of session history. This property was never available to web content is no more supported by any browser. Use Location.href instead.

Property.

Returns a DOMString representing the URL of the active item of
session history. This property was never available to web content
is no more supported by any browser. Use Location.href instead.
sourceraw docstring

forwardcljs

(forward this)

Method.

Moves forward one page in the session history. It has the same as calling history.go() with a delta parameter of 1.

window.history.forward();

See also: https://developer.mozilla.org/en-US/docs/Web/API/History/forward

Method.

Moves forward one page in the session history. It has the same
as calling history.go() with a delta parameter of 1.

`window.history.forward();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/History/forward`
sourceraw docstring

gocljs

(go this delta)

Method.

The go() method loads a specific page from the session history. can use it to move forwards and backwards through the history on the value of the delta parameter.

window.history.go(delta);

See also: https://developer.mozilla.org/en-US/docs/Web/API/History/go

Method.

The go() method loads a specific page from the session history.
can use it to move forwards and backwards through the history
on the value of the delta parameter.

`window.history.go(delta);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/History/go`
sourceraw docstring

lengthcljs

(length this)

Property.

[Read Only]

The History.length read-only property returns an Integer representing number of elements in the session history, including the currently page. For example, for a page loaded in a new tab this property 1.

length = history.length;

See also: https://developer.mozilla.org/en-US/docs/Web/API/History/length

Property.

[Read Only]

The History.length read-only property returns an Integer representing
number of elements in the session history, including the currently
page. For example, for a page loaded in a new tab this property
1.

`length = history.length;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/History/length`
sourceraw docstring

nextcljs

(next this)

Property.

Returns a DOMString representing the URL of the next item in session history. This property was never available to web content is not supported by other browsers.

Property.

Returns a DOMString representing the URL of the next item in
session history. This property was never available to web content
is not supported by other browsers.
sourceraw docstring

previouscljs

(previous this)

Property.

Returns a DOMString representing the URL of the previous item the session history. This property was never available to web and is not supported by other browsers.

Property.

Returns a DOMString representing the URL of the previous item
the session history. This property was never available to web
and is not supported by other browsers.
sourceraw docstring

push-statecljs

(push-state this state title url)

Method.

In an HTML document, the history.pushState() method adds a state the browsers history.

history.pushState(state, title, url);

See also: https://developer.mozilla.org/en-US/docs/Web/API/History/pushState

Method.

In an HTML document, the history.pushState() method adds a state
the browsers history.

`history.pushState(state, title, url);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/History/pushState`
sourceraw docstring

replace-statecljs

(replace-state this & args)

Method.

The replaceState() method modifies the current history entry, it with the state objects, title, and URL passed in the method This method is particularly useful when you want to update the object or URL of the current history entry in response to some action.

history.replaceState(stateObj, \"page 2\", \"bar.html\");

See also: https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState

Method.

The replaceState() method modifies the current history entry,
it with the state objects, title, and URL passed in the method
This method is particularly useful when you want to update the
object or URL of the current history entry in response to some
action.

`history.replaceState(stateObj, \"page 2\", \"bar.html\");`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState`
sourceraw docstring

scroll-restorationcljs

(scroll-restoration this)

Property.

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

Property.

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

set-current!cljs

(set-current! this val)

Property.

Returns a DOMString representing the URL of the active item of session history. This property was never available to web content is no more supported by any browser. Use Location.href instead.

Property.

Returns a DOMString representing the URL of the active item of
session history. This property was never available to web content
is no more supported by any browser. Use Location.href instead.
sourceraw docstring

set-next!cljs

(set-next! this val)

Property.

Returns a DOMString representing the URL of the next item in session history. This property was never available to web content is not supported by other browsers.

Property.

Returns a DOMString representing the URL of the next item in
session history. This property was never available to web content
is not supported by other browsers.
sourceraw docstring

set-previous!cljs

(set-previous! this val)

Property.

Returns a DOMString representing the URL of the previous item the session history. This property was never available to web and is not supported by other browsers.

Property.

Returns a DOMString representing the URL of the previous item
the session history. This property was never available to web
and is not supported by other browsers.
sourceraw docstring

set-scroll-restoration!cljs

(set-scroll-restoration! this val)

Property.

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

Property.

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

set-state!cljs

(set-state! this val)

Property.

Returns an any value representing the state at the top of the stack. This is a way to look at the state without having to wait a popstate event.

Property.

Returns an any value representing the state at the top of the
stack. This is a way to look at the state without having to wait
a popstate event.
sourceraw docstring

statecljs

(state this)

Property.

Returns an any value representing the state at the top of the stack. This is a way to look at the state without having to wait a popstate event.

Property.

Returns an any value representing the state at the top of the
stack. This is a way to look at the state without having to wait
a popstate event.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close