mozilla
Your Search Results

    HTMLIFrameElement.getVisible()

    Non-standard
    This feature is not on a current W3C standards track, but it is supported on the Firefox OS platform. Although implementations may change in the future and it is not supported widely across browsers, it is suitable for use in code dedicated to Firefox OS apps.

    This API is available on Firefox OS for privileged or certified applications only.

    Summary

    The getVisible method is used to request the current visible state of the browser <iframe>.

    Syntax

    instanceOfDOMRequest = instanceOfHTMLIframeElement.getVisible();

    Return

    Returns a DOMRequest object to handles the request's success and error. If the request is succesful, the request's result is a boolean indicating the visible state of the browser <iframe>.

    Example

    var browser = document.querySelector("iframe[mozbrowser]");
    var request = browser.getVisible();
    
    request.onsuccess = function () {
      console.log("The visible state is: " + this.result ? "true" : "false");
    }

    Specification

    Not part of any specification.

    See also

    Document Tags and Contributors

    Contributors to this page: Jeremie, teoli, ethertank, kscarfone, ajaybhat
    Last updated by: teoli,
    Hide Sidebar