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.
(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`
(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.
(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`
(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`
(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`
(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.
(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.
(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`
(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`
(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.
(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.
(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.
(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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close