HTMLFrameElement
The interface for <frame>. Extends HTMLElement → Element.
Deprecated. HTMLFrameElement covers an obsolete element (WHATWG HTML §16.3 "Other elements, attributes and APIs"); it exists only for instanceof / constructor.name fidelity and content-attribute reflection, not for use in new content.
Reflected properties
All setters are guarded and throw NoModificationAllowedError on a read-only document.
| Property | Attribute | Type | Notes |
|---|---|---|---|
name |
name |
string | Reflects the content attribute verbatim. |
scrolling |
scrolling |
string | Reflects the content attribute verbatim. |
src |
src |
string | Reflects verbatim — no base-URL resolution. |
frameBorder |
frameborder |
string | Reflects the content attribute verbatim. |
longDesc |
longdesc |
string | Reflects the content attribute verbatim. |
noResize |
noresize |
boolean (presence) | Reading reflects whether the attribute is present; writing false removes it, any other value sets it present. |
marginHeight |
marginheight |
string | Reflects the content attribute verbatim. |
marginWidth |
marginwidth |
string | Reflects the content attribute verbatim. |
See also
- Element —
getAttribute/setAttribute, content,classList, traversal, insertion - HTMLElement — the global reflected properties every HTML element inherits
- JavaScript DOM API — the interface hierarchy and
instanceof