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 & args)

Method.

Goes to the previous page in session history, the same action when the user clicks the browser's Back button. Equivalent to Calling this method to go back beyond the first page in the history has no effect and doesn't raise an exception.

Method.

Goes to the previous page in session history, the same action
when the user clicks the browser's Back button. Equivalent to
Calling this method to go back beyond the first page in the
history has no effect and doesn't raise an exception.
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 & args)

Method.

Goes to the next page in session history, the same action as the user clicks the browser's Forward button; this is equivalent history.go(1). Calling this method to go forward beyond the most recent page the session history has no effect and doesn't raise an exception.

Method.

Goes to the next page in session history, the same action as
the user clicks the browser's Forward button; this is equivalent
history.go(1).
Calling this method to go forward beyond the most recent page
the session history has no effect and doesn't raise an exception.
sourceraw docstring

gocljs

(go this & args)

Method.

Loads a page from the session history, identified by its relative to the current page, for example -1 for the previous page or for the next page. If you specify an out-of-bounds value (for specifying -1 when there are no previously-visited pages in the history), this method silently has no effect. Calling go() without or a value of 0 reloads the current page. Internet Explorer lets specify a string, instead of an integer, to go to a specific in the history list.

Method.

Loads a page from the session history, identified by its relative
to the current page, for example -1 for the previous page or
for the next page. If you specify an out-of-bounds value (for
specifying -1 when there are no previously-visited pages in the
history), this method silently has no effect. Calling go() without
or a value of 0 reloads the current page. Internet Explorer lets
specify a string, instead of an integer, to go to a specific
in the history list.
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 & args)

Method.

Pushes the given data onto the session history stack with the title and, if provided, URL. The data is treated as opaque by DOM; you may specify any JavaScript object that can be serialized. that Firefox currently ignores the title parameter; for more see manipulating the browser history.

Method.

Pushes the given data onto the session history stack with the
title and, if provided, URL. The data is treated as opaque by
DOM; you may specify any JavaScript object that can be serialized.
that Firefox currently ignores the title parameter; for more
see manipulating the browser history.
sourceraw docstring

replace-statecljs

(replace-state this & args)

Method.

Updates the most recent entry on the history stack to have the data, title, and, if provided, URL. The data is treated as opaque the DOM; you may specify any JavaScript object that can be serialized. that Firefox currently ignores the title parameter; for more see manipulating the browser history.

Method.

Updates the most recent entry on the history stack to have the
data, title, and, if provided, URL. The data is treated as opaque
the DOM; you may specify any JavaScript object that can be serialized.
that Firefox currently ignores the title parameter; for more
see manipulating the browser history.
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