WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM IFrame Object


IFrame Object

The IFrame object speaks to a HTML <iframe> element.

Access an IFrame Object

You can get to a <iframe> component by utilizing getElementById():

var x = document.getElementById("myFrame");

Tip: You can likewise get to a <iframe> component by utilizing the window.frames property.

Create an IFrame Object

You can make a <iframe> component by utilizing the document.createElement() method:

var x = document.createElement("IFRAME");

IFrame Object Properties

= Property included HTML5.

Property Description
align Not upheld in HTML5. Use style.cssFloat instead.
Sets or returns the estimation of the adjust characteristic in an iframe
contentDocument Returns the archive object created by an iframe
contentWindow Returns the window object produced by an iframe
frameBorder Not bolstered in HTML5. Use style.border instead.
Sets or returns the estimation of the frameborder quality in an iframe
tallness Sets or returns the estimation of the tallness characteristic in an iframe
longDesc Not upheld in HTML5.
Sets or returns the estimation of the longdesc quality in an iframe
marginHeight Not bolstered in HTML5. Use style.margin instead.
Sets or returns the estimation of the marginheight quality in an iframe
marginWidth Not upheld in HTML5. Use style.margin instead.
Sets or returns the estimation of the marginwidth characteristic in an iframe
name Sets or returns the estimation of the name quality in an iframe
sandbox Returns the estimation of the sandbox property in an iframe
scrolling Not bolstered in HTML5.
Sets or returns the estimation of the looking over quality in an iframe
seamless Sets or returns whether an iframe should appear as though it is a piece of the containing report (no fringes or scrollbars), or not
src Sets or returns the estimation of the src quality in an iframe
srcdoc Sets or returns the estimation of the srcdoc trait in an iframe
width Sets or returns the estimation of the width property in an iframe

IFrame Object Events

Event Description
onload Script to be pursued promptly an iframe is loaded