diff --git a/docs/References/webview Tag.md b/docs/References/webview Tag.md index 32ce3456fe..4d862ebd30 100644 --- a/docs/References/webview Tag.md +++ b/docs/References/webview Tag.md @@ -42,4 +42,9 @@ and add 'partition="trusted"' attribute to the webview tag. ### Node.js support in webview -To enable Node.js support in WebView, add the `allownw` attribute to the webview tag. Then Node.js will be turned on, no matter it loads local file or remote site. Use this feature with caution because webview is normally supposed to load untrusted contents. \ No newline at end of file +To enable Node.js support in WebView, add the `allownw` attribute to the webview tag. Then Node.js will be turned on, no matter it loads local file or remote site. Use this feature with caution because webview is normally supposed to load untrusted contents. + +### Navigation history in webview +Webview is keepeng its navigation history so you can navigate throught it via `back`, `forward`, `go`, eventually `canGoBack` and `canGoForward` functions (see API references above). To see navigation history use: +* `webview.getPagesHistory()` returns array of objects with `url`, `favicon` and `title` (favicons and titles are available only for non-current navigation). +* `webview.getCurrentHistoryIndex()` returns current index in getPagesHistory array (if you navigate back you can be in middle of navigation history).