History.idl 638 B

123456789101112131415
  1. // https://html.spec.whatwg.org/multipage/nav-history-apis.html#scrollrestoration
  2. enum ScrollRestoration { "auto", "manual" };
  3. // https://html.spec.whatwg.org/multipage/history.html#the-history-interface
  4. [Exposed=Window]
  5. interface History {
  6. readonly attribute unsigned long length;
  7. attribute ScrollRestoration scrollRestoration;
  8. readonly attribute any state;
  9. undefined go(optional long delta = 0);
  10. undefined back();
  11. undefined forward();
  12. undefined pushState(any data, DOMString unused, optional USVString? url = null);
  13. undefined replaceState(any data, DOMString unused, optional USVString? url = null);
  14. };