JavaScript Reference :: IFrame

The IFrame object references an HTML iframe (inline frame) element and functions similarly to a Frame or Window object.

methods

properties

align
The alignment of the iframe relative to the surrounding document. Valid values are:
  • left
  • right
  • top
  • middle
  • bottom
className
The value of the class attribute in the HTML tag.
contentDocument
The Document object the IFrame contains.
dir
The text direction of the element, i.e. either ltr or rtl.
frameBorder
Whether or not to display a border.
height
The height of the IFrame.
id
The id of the object.
lang
The language code associated with the element.
longDesc
The URL of the document describing the contents of the IFrame.
marginHeight
The value of the marginheight attribute, i.e. the top and bottom margin of the element.
marginWidth
The value of the marginwidth attribute, i.e. the left and right margin of the element.
name
The name of the IFrame.
scrolling
Whether or not the IFrame should have scrollbars. Valid values are:
  • Yes
  • No
  • Auto
src
The URL of the IFrame content document.
width
The width of the IFrame.

events

onblur
onfocus
onload