Name
UNITS — NN 2 IE 3 HTML n/a
Synopsis
UNITS=”measurementUnitType"Optional
The UNITS attribute is supposed to dictate the
kind of measurement units used for the element’s
HEIGHT and WIDTH attribute
values. Both Navigator 4 and Internet Explorer 4 appear to treat the
measurements in pixels, regardless of this attribute’s setting.
Example
<EMBED SRC="jazz.aif" HEIGHT=150 WIDTH=250 UNITS="en"></EMBED>
Value
Not only does this attribute not appear to influence the rendering of
an EMBED element, but Navigator 4 and Internet
Explorer 4 disagree on the precise spelling and available units for
values. Navigator 4 specifies choices of pixels or
en; Internet Explorer goes with
px or em.
Default
pixels (or px).
Object Model Reference
- IE
[window.]document.embeds[i].units
[window.]document.elementID.units
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access