createIFrameElement function

  1. @Deprecated('Use the HTMLIFrameElement constructor instead.')
HTMLIFrameElement createIFrameElement()

Create an HTMLIFrameElement in the current document.

Deprecated in favor of creating the element like other HTML elements:

final embed = document.createElement('iframe') as HTMLIFrameElement;

Implementation

@Deprecated('Use the HTMLIFrameElement constructor instead.')
HTMLIFrameElement createIFrameElement() =>
    document.createElement('iframe') as HTMLIFrameElement;