Class DOM


  • @JsType(isNative=true,
            namespace="<global>",
            name="window")
    public final class DOM
    extends Object
    The DOM object provide a static reference to the document attached in the window.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getDocument

        @JsProperty
        public static BaseHtmlDocument getDocument()
        Returns a reference to the document that the window contains.
        Returns:
        a reference to the document that the window contains
      • getLocation

        @JsProperty
        public static BaseLocation getLocation()
        Returns a BaseLocation object, which contains information about the URL of the document and provides methods for changing that URL and loading another URL.
        Returns:
        a BaseLocation object, which contains information about the URL of the document and provides methods for changing that URL and loading another URL
      • getNavigator

        @JsProperty
        public static BaseNavigator getNavigator()
        Returns a BaseNavigator object, which represents the state and the identity of the user agent.
        Returns:
        a BaseNavigator object, which represents the state and the identity of the user agent