projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c311c6c
)
Document the new method.
author
Charlie Hess
<charlie@slack-corp.com>
Wed, 2 Dec 2015 21:49:42 +0000
(13:49 -0800)
committer
Charlie Hess
<charlie@slack-corp.com>
Wed, 2 Dec 2015 21:49:42 +0000
(13:49 -0800)
docs/api/web-contents.md
patch
|
blob
|
history
diff --git
a/docs/api/web-contents.md
b/docs/api/web-contents.md
index
e976b0d
..
c35bbc9
100644
(file)
--- a/
docs/api/web-contents.md
+++ b/
docs/api/web-contents.md
@@
-242,6
+242,13
@@
const options = {"extraHeaders" : "pragma: no-cache\n"}
webContents.loadURL(url, options)
```
+### `webContents.downloadURL(url)`
+
+* `url` URL
+
+Initiates a download of the resource at `url` without navigating. The
+`will-download` event of `session` will be triggered.
+
### `webContents.getURL()`
Returns URL of the current web page.