Class: BrowserWindowProxy
Class: BrowserWindowProxy#
Manipulate the child browser window
Process: Renderer
This class is not exported from the 'electron' module. It is only available as a return value of other methods in the Electron API.
The BrowserWindowProxy object is returned from window.open and provides
limited functionality with the child window.
Instance Methods#
The BrowserWindowProxy object has the following instance methods:
win.blur()#
Removes focus from the child window.
win.close()#
Forcefully closes the child window without calling its unload event.
win.eval(code)#
codeString
Evaluates the code in the child window.
win.focus()#
Focuses the child window (brings the window to front).
win.print()#
Invokes the print dialog on the child window.
win.postMessage(message, targetOrigin)#
messageanytargetOriginString
Sends a message to the child window with the specified origin or * for no
origin preference.
In addition to these methods, the child window implements window.opener object
with no properties and a single method.
Instance Properties#
The BrowserWindowProxy object has the following instance properties:
win.closed#
A Boolean that is set to true after the child window gets closed.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
