This specification describes a proposed <webview> HTML element and an associated JavaScript API which allows a web page to embed another web page and manipulate and listen to changes in the embedded content.

Introduction

This is a proposed extension to the [[!HTML5]] specification.

Webview Element

Attributes

src

The URL of the page to embed.

name

Sets the window.name property of the embedded browsing context.

manifest

The URL of an [[appmanifest]].

By default a <webview> browser context can be navigated to any URL. If the manifest attribute is set to a valid app manifest URL then the browser context may instead be limited to the scope of the app described in the manifest.

If the embedded browser context attempts to navigate to a URL outside of this scope then the user agent may instead load that URL outside of the embedded browser context, as per the convention for that user agent.

Usage

            <webview name="foo" manifest="http://foo.com/manifest.webapp" src="http://foo.com" />
            

Webview API

Events

locationchange

titlechange

iconchange

loadstart

loadend

scroll

close

newwindow

Methods

go()

stop()

reload()

back()

forward()

canGoBack()

canGoForward()