The srcdoc property of the HTMLIFrameElement interface gets or sets the inline HTML markup of the frame's document.
srcdoc
MDN Reference