How to get HTML content of an iframe using JavaScript?

contentWindow: It is a property which returns the window object of the iframe. contentWindow.document: It returns the document object of iframe window. contentWindow.document.body.innerHTML: It returns the HTML content of iframe body. Example: The following example demonstrates to include separate HTML file into existing document. filter_none.
For More Information Please Refer:

You May Also Like to Read: