summaryrefslogtreecommitdiff
path: root/api/dwb-js.7
diff options
context:
space:
mode:
Diffstat (limited to 'api/dwb-js.7')
-rw-r--r--api/dwb-js.735
1 files changed, 23 insertions, 12 deletions
diff --git a/api/dwb-js.7 b/api/dwb-js.7
index 3db3dce2..9cdb1319 100644
--- a/api/dwb-js.7
+++ b/api/dwb-js.7
@@ -1663,7 +1663,7 @@ Number of steps, pass a negative value to go back in history
\fBBoolean wv.loadUri(String uri, [Function callback])\fR
.RS 4
.sp
-Load an uri in a webview\&.
+Loads an uri in a webview\&.
.PP
\fIuri\fR
.RS 4
@@ -1686,6 +1686,28 @@ true if the uri is loaded
.nr an-break-flag 1
.br
.ps +1
+\fBvoid wv.reload(void)\fR
+.RS 4
+.sp
+Reloads a webview
+.RE
+.sp
+.it 1 an-trap
+.nr an-no-space-flag 1
+.nr an-break-flag 1
+.br
+.ps +1
+\fBvoid wv.stopLoading()\fR
+.RS 4
+.sp
+Stops any ongoing loading\&.
+.RE
+.sp
+.it 1 an-trap
+.nr an-no-space-flag 1
+.nr an-break-flag 1
+.br
+.ps +1
\fBNumber wv.toPng(String filename, [Number width, Number height], [Boolean keepAspect])\fR
.RS 4
.sp
@@ -1716,17 +1738,6 @@ Whether to keep the aspect ratio, if set to true the new image will have the sam
A cairo_status_t (0 on success) or \-1 if an error occured\&.
.RE
.RE
-.sp
-.it 1 an-trap
-.nr an-no-space-flag 1
-.nr an-break-flag 1
-.br
-.ps +1
-\fBvoid wv.reload(void)\fR
-.RS 4
-.sp
-Reload a webview
-.RE
.SS "frame"
.sp
A frame represents a frame or iframe\&. Due to same origin policy it is not possible to inject scripts from a webview into iframes with a different domain\&. For this purpose the frame object can be used\&.