Skip to main content

Overview

Anchor Browser offers a live view feature that allows you to embed an interactive frame of a website as a web element. The live_view_url is received when creating a session.

Headful Mode (Default)

Headful mode provides a single URL to view the full chrome view, including the address bar. This ensures the presented tab is always the active tab and provides the best user experience. To create a browser in headful mode, create a session with browser.headless.active set to false (the default):
Then, use the live_view_url from the response to embed the live view directly into an iframe:

Advanced Embedding Configuration

Embed in Fullscreen View (Hide Navigation Bar)

To use the fullscreen view, replace the live view URL with the following:

Disable Browser Interactivity

To prevent the end user from interacting with the browser, add the style="pointer-events: none;" attribute to the iframe:
This feature is available for both headful and headless modes.

Single-Use Live View URL

To generate a live view URL that can only be used once, set one_time_url to true. After the first viewer connects and disconnects, the URL becomes permanently invalid.
one_time_url requires a headful browser. It cannot be used with headless mode.

Headless Mode

To obtain the browser live session URL in headless mode, start by creating a session:
The live_view_url currently points to the browser default first page.
Then, use the create-session response to embed the live view URL directly into an iframe: