]> khamidou — GitHub mirrors - electron.git/commitdiff
docs: Mention window.open inherits options
authorCheng Zhao <zcbenz@gmail.com>
Tue, 22 Sep 2015 14:46:44 +0000 (22:46 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 22 Sep 2015 14:46:44 +0000 (22:46 +0800)
docs/api/window-open.md

index c574d5d036ee193b86262bdcd4c358c41212cb1f..5d298e61e75b52c02fbcaaddf10b00129bf66cf3 100644 (file)
@@ -8,6 +8,10 @@ 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`
+string.
+
 ### `window.open(url[, frameName][, features])`
 
 * `url` String
@@ -16,6 +20,9 @@ you should create a `BrowserWindow` directly.
 
 Creates a new window and returns an instance of `BrowserWindowProxy` class.
 
+The `features` string follows the format of standard browser, but each feature
+has to be a field of `BrowserWindow`'s options.
+
 ### `window.opener.postMessage(message, targetOrigin)`
 
 * `message` String