@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="History")
public class History
extends JsObject
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
scrollRestoration
The scrollRestoration property of History interface allows web applications to explicitly set default scroll restoration behavior on history navigation.
|
| Modifier | Constructor and Description |
|---|---|
protected |
History() |
| Modifier and Type | Method and Description |
|---|---|
void |
back()
The History.back() method causes the browser to move back one page in the session history.
|
void |
forward()
The History.forward() method causes the browser to move forward one page in the session history.
|
void |
go()
The History.go() method loads a specific page from the session history.
|
void |
go(int delta)
The History.go() method loads a specific page from the session history.
|
int |
length()
The History.length read-only property returns an integer representing the number of elements in the session history, including the currently loaded page.
|
void |
pushState(java.lang.Object data,
java.lang.String unused)
In an HTML document, the history.pushState() method adds an entry to the browser's session history stack.
|
void |
pushState(java.lang.Object data,
java.lang.String unused,
java.lang.String url)
In an HTML document, the history.pushState() method adds an entry to the browser's session history stack.
|
void |
replaceState(java.lang.Object data,
java.lang.String unused)
The History.replaceState() method modifies the current history entry, replacing it with the stateObj, title, and URL passed in the method parameters.
|
void |
replaceState(java.lang.Object data,
java.lang.String unused,
java.lang.String url)
The History.replaceState() method modifies the current history entry, replacing it with the stateObj, title, and URL passed in the method parameters.
|
jsinterop.base.Any |
state()
The History.state property returns a value representing the state at the top of the history stack.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, values@Nonnull @ScrollRestoration public java.lang.String scrollRestoration
@JsProperty(name="length") public int length()
@JsProperty(name="state") @Nullable public jsinterop.base.Any state()
public void back()
public void forward()
public void go(int delta)
public void go()
public void pushState(@Nullable
java.lang.Object data,
@Nonnull
java.lang.String unused,
@Nullable
java.lang.String url)
public void pushState(@Nullable
java.lang.Object data,
@Nonnull
java.lang.String unused)
public void replaceState(@Nullable
java.lang.Object data,
@Nonnull
java.lang.String unused,
@Nullable
java.lang.String url)
public void replaceState(@Nullable
java.lang.Object data,
@Nonnull
java.lang.String unused)