getCrossSiteWindow method

Gets a window from a different domain than current page.

Note These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.


var oWindow = DiagnosticsDom.getCrossSiteWindow(currentWindow, targetWindow);


  • currentWindow [in]
    Type: Window

    Window of current page.

  • targetWindow [in]
    Type: Window

    Window of page in a different domain.

Return value

Type: Window

Window of page on other domain that can be accessed.

See also