How to get a reference to an iframe?

You can get a reference to an iframe using getElementById. You can use that reference to set properties on the iframe, such as style or src: The iframe element also provides contentWindow and contentDocument properties. The following JavaScript uses these properties to get references to the iframed document’s window and document objects: …
For More Information Please Refer:


You May Also Like to Read: