Skip to content

Commit

Permalink
Merge pull request electron#6576 from electron/browser-window-proxy-docs
Browse files Browse the repository at this point in the history
Fix BrowserWindowProxy documentation
  • Loading branch information
zcbenz authored Jul 25, 2016
2 parents 6608688 + a2ffab4 commit 729b84f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/api/window-open.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ The proxy has limited standard functionality implemented to be
compatible with traditional web pages. For full control of the new window
you should create a `BrowserWindow` directly.

The newly created `BrowserWindow` will inherit parent window's options by
default, to override inherited options you can set them in the `features`
The newly created `BrowserWindow` will inherit the parent window's options by
default. To override inherited options you can set them in the `features`
string.

### `window.open(url[, frameName][, features])`
Expand Down Expand Up @@ -45,33 +45,33 @@ limited functionality with the child window.

The `BrowserWindowProxy` object has the following instance methods:

#### `BrowserWindowProxy.blur()`
#### `win.blur()`

Removes focus from the child window.

#### `BrowserWindowProxy.close()`
#### `win.close()`

Forcefully closes the child window without calling its unload event.

#### `BrowserWindowProxy.closed`
#### `win.closed`

Set to true after the child window gets closed.

#### `BrowserWindowProxy.eval(code)`
#### `win.eval(code)`

* `code` String

Evaluates the code in the child window.

#### `BrowserWindowProxy.focus()`
#### `win.focus()`

Focuses the child window (brings the window to front).

#### `BrowserWindowProxy.print()`
#### `win.print()`

Invokes the print dialog on the child window.

#### `BrowserWindowProxy.postMessage(message, targetOrigin)`
#### `win.postMessage(message, targetOrigin)`

* `message` String
* `targetOrigin` String
Expand Down

0 comments on commit 729b84f

Please sign in to comment.