Anatomy

An iFrame is a container for externally sourced content.
- iFrame container: Container on a page that displays externally sourced content.
Usage
iFrame is used to display relevant web-based content.
Configurations
Learn how to customize iFrame by configuring the available properties.
Title
Name for your iframe content title. Default is “Wikipedia home page.”
Source
URL for your external content. The default is ”https://wikipedia.com.”
Sandbox
By default, scripts are allowed, but other restrictions exist. You can select to disable the sandbox, which removes the restrictions to forms, modals, popups, and such.
Data
If you want to send messages to the iframed document, use the “data” property to post the contents immediately.
Target origin
Use the target origin to securely specify the required origin of the recipient window for the “data” message.
Size
You can specify the dimensions of iFrame by configuring the height and width.
Width
The default iFrame width is 400 pixels, but you can change it to suit your needs. Width is in CSS units or number of pixels.
Height
The default iFrame height is 300 pixels, but you can change it to suit your needs. Height is in CSS units or number of pixels.