JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.javascript.host

Class History

    • Constructor Detail

      • History

        public History()
    • Method Detail

      • jsConstructor

        public void jsConstructor()
        JavaScript constructor.
      • getLength

        public int getLength()
        Returns the length property.
        Returns:
        the length property
      • getState

        public Object getState()
        Returns the state property.
        Returns:
        the state property
      • back

        public void back()
        JavaScript function "back".
      • forward

        public void forward()
        JavaScript function "forward".
      • go

        public void go(int relativeIndex)
        JavaScript function "go".
        Parameters:
        relativeIndex - the relative index
      • replaceState

        public void replaceState(Object object,
         String title,
         Object url)
        Replaces a state.
        Parameters:
        object - the state object
        title - the title
        url - an optional URL
      • pushState

        public void pushState(Object object,
         String title,
         Object url)
        Pushes a state.
        Parameters:
        object - the state object
        title - the title
        url - an optional URL
      • getScrollRestoration

        public String getScrollRestoration()
        Returns the scrollRestoration property.
        Returns:
        the scrollRestoration property
      • setScrollRestoration

        public void setScrollRestoration(String scrollRestoration)
        Parameters:
        scrollRestoration - the new value
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /