HTMLMarqueeElement
The interface for <marquee>. Extends HTMLElement → Element.
Deprecated. HTMLMarqueeElement 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 |
|---|---|---|---|
behavior |
behavior |
string | Reflects the content attribute verbatim. |
bgColor |
bgcolor |
string | Reflects the content attribute verbatim. |
direction |
direction |
string | Reflects the content attribute verbatim. |
height |
height |
string | Reflects the content attribute verbatim. |
hspace |
hspace |
string | Reflects the content attribute verbatim. |
loop |
loop |
string | Reflects the content attribute verbatim. |
scrollAmount |
scrollamount |
string | Reflects the content attribute verbatim. |
scrollDelay |
scrolldelay |
string | Reflects the content attribute verbatim. |
trueSpeed |
truespeed |
boolean (presence) | Reading reflects whether the attribute is present; writing false removes it, any other value sets it present. |
vspace |
vspace |
string | Reflects the content attribute verbatim. |
width |
width |
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