Your Search Results


    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.


    The getCanGoForward method is used to know if it's possible to go forward in the navigation history of the browser <iframe>.


    var instanceOfDOMRequest = instanceOfHTMLIframeElement.getCanGoForward();


    Returns a DOMRequest object to handle the request's success or error. If the request is successful, the request's result will be a boolean indicating if the history can be navigated forward (true) or not (false).


    var browser = document.querySelector("iframe[mozbrowser]");
    var request = browser.getCanGoForward();
    request.onsuccess = function () {
      if (this.result) {
        console.log("It's possible to navigate the history forward.");
      } else {
        console.log("It's not possible to navigate the history forward.");


    Not part of any specification.

    See also

    Document Tags and Contributors

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