Switch branches/tags
Nothing to show
Find file History
avallee BrowserSample: Ensure the webview is focused.
Like a real web browser, the content should be focused whenever it is
navigated. Additionally, since there is a default web page shown on
start, the webview should be focused. This is unlike a new tab page in
chrome that doesn't really have content and invites the user to type
into the address bar (which should have focus in that case.)
Latest commit 4c6d724 Jan 25, 2017


Try it now in CWS


Sample that shows how to use the webview tag in an app to create a mini browser.

The app's main window contains a <webview> that is sized to fit most of it (via the width and height attributes). The location bar is used to update its src attribute.

<webview> is the preferred way for you to load web content into your app. It runs in a separate process and has its own storage, ensuring the security and reliability of your application.