<frame>
A page element similar to HTML's <iframe>, which can embed a Lynx page into the current page.
Usage Guide
The following is an example of a main page loading an embedded page via the <frame> element.
- The main page passes
initDataandglobalPropsto the embedded page through thedataandglobalPropsattributes. - The main page listens for the embedded page loading status via the
bindloadevent.
Main Page

Embedded Page

The <frame> element was introduced in 3.4. To use this element, the Lynx dependency version must be upgraded to 3.4 or higher.
<frame> does not currently support automatic height adjustment. You need to manually set the width and height of the frame.
Attributes
data
Android
iOS
3.4
Passes data to the nested Lynx page within the frame.
global-props
Android
iOS
3.6
Passes
globalProps
to the Lynx page embedded in the frame. The embedded page can read it via
lynx.__globalProps
.
src
Android
iOS
3.4
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
iOS
3.6
Bind frame load event callback.
Compatibility
LCD tables only load in the browser