<frame>

A page element similar to HTML's <iframe>, which can embed a Lynx page into the current page.

TIP

The <frame> element was introduced in Lynx version 3.4. To use this element, the Lynx dependency version must be upgraded to 3.4 or higher.

CAUTION

<frame> does not currently support automatic height adjustment. You need to manually set the width and height of the frame.

Attributes

data

Android only
iOS only
3.4
data?: Record<string, unknown>;

Passes data to the nested Lynx page within the frame.

global-props

Android only
iOS only
3.6
'global-props'?: Record<string, unknown>;

Pass global props to the nested Lynx page within the frame.

src

Android only
iOS only
3.4
src: string;

Sets the loading path for the frame resource.

Events

Frontend can bind corresponding event callbacks to listen for runtime behaviors of the element, as shown below.

bindload

Android only
iOS only
3.6
bindload = (e: FrameLoadEvent) => {};
FieldTypeOptionalDefaultPlatformsSinceDescription
statusCodenumberNo
Android only
iOS only
3.6
3.6Frame loaded status code.
statusMessagestringNo
Android only
iOS only
3.6
3.6Frame loaded status message.
urlstringNo
Android only
iOS only
3.6
3.6The loaded url of the frame.

Bind frame load event callback.

Compatibility

LCD tables only load in the browser

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.