docs: Document the disposition parameter

This commit is contained in:
Cheng Zhao 2014-11-04 18:37:06 +08:00
parent 22c5720aa2
commit 033212841d
2 changed files with 4 additions and 1 deletions

View file

@ -551,7 +551,8 @@ Emitted when a redirect was received while requesting a resource.
* `event` Event
* `url` String
* `frameName` String
* `options` Object
* `disposition` String - Can be `default`, `foreground-tab`, `background-tab`,
`new-window` and `other`
Emitted when the page requested to open a new window for `url`. It could be
requested by `window.open` or an external link like `<a target='_blank'>`.

View file

@ -250,6 +250,8 @@ webview.addEventListener('console-message', function(e) {
* `url` String
* `frameName` String
* `disposition` String - Can be `default`, `foreground-tab`, `background-tab`,
`new-window` and `other`
Fired when the guest page attempts to open a new browser window.