iframe srcdoc – HTML iframe srcdoc Attribute

iframe srcdoc attribute specifies the HTML data content of the online web page to display in the inline frame. srcdoc. Inline HTML to embed, overriding the src attribute.

iframe srcdoc – HTML DOM IFrame srcdoc Property

iframe srcdoc Attribute is used to specify the HTML content of the document in the element. The srcdoc attribute gives the data content of the web page that the element’s nested level browsing context is to contain.

Also Read This 👉   Get URL Parameters using jQuery Example

HTML iframe srcdoc Attribute

What is the difference between srcdoc=”…” and src=”data:text/html,…” in an