Skip to main content
Creates an iframe element inside the target container.

Parameters

Returns

HTMLIFrameElement The iframe element.

Throws

InputValidationError if target is an iframe element, selector resolves to an iframe, or selector doesn’t match any element.