From: Cheng Zhao Date: Wed, 13 Jan 2016 04:20:49 +0000 (+0800) Subject: docs: webFrame.executeJavaScript X-Git-Tag: v0.36.4~12^2~3 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=118924ba7a6b1fd41b8fc84909d090691260dd44;p=electron.git docs: webFrame.executeJavaScript --- diff --git a/docs/api/web-frame.md b/docs/api/web-frame.md index e5dfa0b4..d9e02ac0 100644 --- a/docs/api/web-frame.md +++ b/docs/api/web-frame.md @@ -96,4 +96,15 @@ allows registering ServiceWorker and supports fetch API. Inserts `text` to the focused element. +### `webFrame.executeJavaScript(code[, userGesture])` + +* `code` String +* `userGesture` Boolean (optional) - Default is `false`. + +Evaluates `code` in page. + +In the browser window some HTML APIs like `requestFullScreen` can only be +invoked by a gesture from the user. Setting `userGesture` to `true` will remove +this limitation. + [spellchecker]: https://github.com/atom/node-spellchecker