# webview

webview module provides a series of web operation API like goBackgoForward, and reload.

Usually used with the <web> component.

var webElement = this.$el('webview');
var webview = weex.requireModule('webview');
webview.goBack(webElement.ref);
webview.goForward(webElement.ref);
webview.reload(webElement.ref);

# API

# goBack

Goes to the previous page in WebView's session history.

# goBack(webElement)

  • @webElement, the element ref of the <web> component.

# goForward

Goes to the next page in WebView's session history.

# goForward(webElement)

  • @webElement, the element ref of the <web> component.

# reload

Reloads the current web page.

# reload(webElement)

  • @webElement, the element ref of the <web> component.

Demo

Last Updated: 3/26/2019
Excellent docUnusable doc