Class BaseHtmlDocument


  • @JsType(isNative=true,
            name="HTMLDocument",
            namespace="<global>")
    public final class BaseHtmlDocument
    extends BaseDocument
    Extends the document to include methods and properties that are specific to HTML documents.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getActiveElement

        @JsProperty
        public BaseHtmlElement getActiveElement()
        Returns the element within the DOM that currently has focus.
        Returns:
        the element within the DOM that currently has focus
      • getBody

        @JsProperty
        public Body getBody()
        Returns the <body> or <frameset> node of the current document, or null if no such element exists.
        Returns:
        the <body> or <frameset> node of the current document, or null if no such element exists