Vous êtes sur la page 1sur 14

J avaScript Bible 4th Edition

Danny Goodman
Appendix A
J avaScript and Browser Objects
Quick Reference
2001 Danny Goodman (www.dannyg.com). All Rights Reserved.
20 February 2001
( 1 ) M e t h o d o f t h e s t a t i c S t r i n g o b j e c t .
( 2 ) A d d e d b e h a v i o r i n N 4 i n c l u d e s : a b i l i t y t o a c c e p t a r e g e x p
p a r a m e t e r ; s e c o n d p a r a m e t e r ( l i m i t i n t e g e r ) t o l i m i t t h e n u m b e r o f
s p l i t s t o b e i n c l u d e d ; a s p a c e s t r i n g p a r a m e t e r s i g n i f y i n g a n y w h i t e
s p a c e c h a r a c t e r .
c o n s t r u c t o r
N 4 , I E 4
l e n g t h
p r o t o t y p e
N 4 , J 2
a n c h o r ( " a n c h o r N a m e " )
b i g ( )
b l i n k ( )
b o l d ( )
c h a r A t ( i n d e x )
c h a r C o d e A t ( [ i ] )
N 4 , I E 4
c o n c a t ( s t r i n g 2 )
N 4 , I E 4
f i x e d ( )
f o n t c o l o r ( # r r g g b b )
f o n t s i z e ( 1 t o 7 )
f r o m C h a r C o d e ( n 1 . . . )
( 1 ) , N 4 , I E 4
i n d e x O f ( " s t r " [ , i ] )
i t a l i c s ( )
l a s t I n d e x O f ( " s t r " [ , i ] )
l i n k ( U R L )
l o c a l e C o m p a r e ( )
N 6 , I E 5 . 5
m a t c h ( r e g e x p )
N 4 , I E 4
r e p l a c e ( r e g e x p , s t r )
N 4 , I E 4
s e a r c h ( r e g e x p )
N 4 , I E 4
s l i c e ( i , j )
N 4 , I E 4
s m a l l ( )
s p l i t ( c h a r )
N 3 , ( 2 ) , I E 4
s t r i k e ( )
s u b ( )
s u b s t r ( s t a r t , l e n g t h )
N 4 , I E 4
s u b s t r i n g ( i n t A , i n t B )
s u p ( )
t o L o c a l e L o w e r C a s e ( )
N 6 , I E 5 . 5
t o L o c a l e U p p e r C a s e ( )
N 6 , I E 5 . 5
t o L o w e r C a s e ( )
t o S t r i n g ( )
N 4 , I E 4
t o U p p e r C a s e ( )
v a l u e O f ( )
N 4 , I E 4
S t r i n g
( 1 ) P r o p e r t y o f t h e s t a t i c R e g E x p o b j e c t .
( 2 ) R e t u r n s a n a r r a y w i t h p r o p e r t i e s : i n d e x , i n p u t , [ 0 ] , [ 1 ] , . . . [ n ] .
g l o b a l
i g n o r e C a s e
i n p u t
( 1 ) , I E 5 . 5
l a s t I n d e x
m u l t i l i n e
( 1 ) , I E 5 . 5
l a s t M a t c h
( 1 ) , I E 5 . 5
l a s t P a r e n
( 1 ) , I E 5 . 5
l e f t C o n t e x t
( 1 ) , I E 5 . 5
p r o t o t y p e
r i g h t C o n t e x t
( 1 )
s o u r c e
$ 1 . . . $ 9
c o m p i l e ( r e g e x p )
e x e c ( " s t r i n g " )
( 2 )
t e s t ( " s t r i n g " )
s t r . m a t c h ( r e g e x p )
s t r . r e p l a c e ( r e g e x p , s t r )
s t r . s e a r c h ( r e g e x p )
s t r . s p l i t ( r e g e x p [ , l i m i t ] )
R e g u l a r E x p r e s s i o n s
N 4 , I E 4
( 1 ) D i s c o n t i n u e d f o r N 6 .
a r g u m e n t s
a r i t y
N 4
c a l l e r
( 1 )
c o n s t r u c t o r
N 4 , I E 4
l e n g t h
p r o t o t y p e
a p p l y ( t h i s , a r g s A r r a y )
N 6 , I E 5 . 5
c a l l ( t h i s [ , a r g 1 [ , . . . a r g N ] ] )
N 6 , I E 5 . 5
t o S t r i n g ( )
v a l u e O f ( )
F u n c t i o n
N 3 , J 2
p r o t o t y p e
c o n s t r u c t o r
d e s c r i p t i o n
W 5
f i l e N a m e
N 6
l i n e N u m b e r
N 6
m e s s a g e
N 6 , I E 5 . 5
n a m e
N 6 , I E 5 . 5
n u m b e r
W 5
t o S t r i n g ( )
E r r o r
N 6 , W 5
c o n s t r u c t o r
N 4 , I E 4
M A X _ V A L U E
M I N _ V A L U E
N a N
N E G A T I V E _ I N F I N I T Y
P O S I T I V E _ I N F I N I T Y
p r o t o t y p e
t o E x p o n e n t i a l ( n )
N 6 , I E 5 . 5
t o F i x e d ( n )
N 6 , I E 5 . 5
t o L o c a l e S t r i n g ( )
N 6 , I E 5 . 5
t o S t r i n g ( [ r a d i x ] )
N 4 , I E 4
t o P r e c i s i o n ( n )
N 6 , I E 5 . 5
v a l u e O f ( )
N 4 , I E 4
N u m b e r
N 3 , J 2
c o n s t r u c t o r
N 4 , I E 4
p r o t o t y p e
N 3 , I E 4
g e t F u l l Y e a r ( )
N 4 , J 2
g e t Y e a r ( )
g e t M o n t h ( )
g e t D a t e ( )
g e t D a y ( )
g e t H o u r s ( )
g e t M i n u t e s ( )
g e t S e c o n d s ( )
g e t T i m e ( )
g e t M i l l i s e c o n d s ( )
N 4 , J 2
g e t U T C F u l l Y e a r ( )
N 4 , J 2
g e t U T C M o n t h ( )
N 4 , J 2
g e t U T C D a t e ( )
N 4 , J 2
g e t U T C D a y ( )
N 4 , J 2
g e t U T C H o u r s ( )
N 4 , J 2
g e t U T C M i n u t e s ( )
N 4 , J 2
g e t U T C S e c o n d s ( )
N 4 , J 2
g e t U T C M i l l i s e c o n d s ( )
N 4 , J 2
s e t Y e a r ( v a l )
s e t F u l l Y e a r ( v a l )
N 4 , J 2
s e t M o n t h ( v a l )
s e t D a t e ( v a l )
s e t D a y ( v a l )
s e t H o u r s ( v a l )
s e t M i n u t e s ( v a l )
s e t S e c o n d s ( v a l )
s e t M i l l i s e c o n d s ( v a l )
N 4 , J 2
s e t T i m e ( v a l )
s e t U T C F u l l Y e a r ( v a l )
N 4 , J 2
s e t U T C M o n t h ( v a l )
N 4 , J 2
s e t U T C D a t e ( v a l )
N 4 , J 2
s e t U T C D a y ( v a l )
N 4 , J 2
s e t U T C H o u r s ( v a l )
N 4 , J 2
s e t U T C M i n u t e s ( v a l )
N 4 , J 2
s e t U T C S e c o n d s ( v a l )
N 4 , J 2
s e t U T C M i l l i s e c o n d s ( v a l )
N 4 , J 2
g e t T i m e z o n e O f f s e t ( )
t o D a t e S t r i n g ( )
I E 5 . 5
t o G M T S t r i n g ( )
t o L o c a l e D a t e S t r i n g ( )
I E 5 . 5 , N 6
t o L o c a l e S t r i n g ( )
t o L o c a l e T i m e S t r i n g ( )
I E 5 . 5 , N 6
t o S t r i n g ( )
t o T i m e S t r i n g ( )
I E 5 . 5
t o U T C S t r i n g ( )
N 4 , J 2
D a t e . p a r s e ( " d a t e S t r i n g " )
D a t e . U T C ( d a t e v a l u e s )
D a t e
c o n s t r u c t o r
N 4 , I E 4
p r o t o t y p e
t o S t r i n g ( )
N 4 , I E 4
v a l u e O f ( )
N 4 , I E 4
B o o l e a n
N 3 , J 2
c o n s t r u c t o r
N 4 , I E 4
l e n g t h
p r o t o t y p e
c o n c a t ( a r r a y 2 )
N 4 , I E 4
j o i n ( " c h a r " )
p u s h ( )
N 4 , I E 5 . 5
p o p ( )
N 4 , I E 5 . 5
r e v e r s e ( )
s h i f t ( )
N 4 , I E 5 . 5
s l i c e ( i , [ j ] )
N 4 , I E 4
s o r t ( c o m p a r e F u n c )
s p l i c e ( i , j [ , i t e m s ] )
N 4 , I E 5 . 5
t o L o c a l e S t r i n g ( )
N 6 , I E 5 . 5
t o S t r i n g ( )
u n s h i f t ( )
N 4 , I E 5 . 5
A r r a y
N 3 , J 2
( 1 ) A l l p r o p e r t i e s & m e t h o d s a r e o f t h e s t a t i c M a t h o b j e c t .
E
L N 2
L N 1 0
L O G 2 E
L O G 1 0 E
P I
S Q R T 1 _ 2
S Q R T 2
a b s ( v a l )
a c o s ( v a l )
a s i n ( v a l )
a t a n ( v a l )
a t a n 2 ( v a l 1 , v a l 2 )
c e i l ( v a l )
c o s ( v a l )
e x p ( v a l )
f l o o r ( v a l )
l o g ( v a l )
m a x ( v a l 1 , v a l 2 )
m i n ( v a l 1 , v a l 2 )
p o w ( v a l 1 , p o w e r )
r a n d o m ( )
r o u n d ( v a l )
s i n ( v a l )
s q r t ( v a l )
t a n ( v a l )
M a t h
( 1 )
F u n c t i o n s
d e c o d e U R I ( " e n c o d e d U R I " )
N 6 , I E 5 . 5
d e c o d e U R I C o m p o n e n t ( " e n c C o m p " )
N 6 , I E 5 . 5
e n c o d e U R I ( " U R I S t r i n g " )
N 6 , I E 5 . 5
e n c o d e U R I C o m p o n e n t ( " c o m p S t r i n g " )
N 6 , I E 5 . 5
e s c a p e ( " s t r i n g " [ , 1 ] )
e v a l ( " s t r i n g " )
i s F i n i t e ( n u m b e r )
N 4 , I E 4
i s N a N ( e x p r e s s i o n )
N u m b e r ( s t r i n g )
N 4 , I E 4
p a r s e F l o a t ( " s t r i n g " )
p a r s e I n t ( " s t r i n g " [ , r a d i x ] )
t o S t r i n g ( [ r a d i x ] )
u n e s c a p e ( " s t r i n g " )
u n w a t c h ( p r o p )
N 4
w a t c h ( p r o p , h a n d l e r )
N 4
G l o b a l s
S t a t e m e n t s
/ / / * . . . * /
c o n s t
N 6
v a r
i f ( c o n d i t i o n ) {
s t a t e m e n t s I f T r u e
}
i f ( c o n d i t i o n ) {
s t a t e m e n t s I f T r u e
} e l s e {
s t a t e m e n t s I f F a l s e
}
r e s u l t = c o n d i t i o n ? e x p r 1 : e x p r 2
f o r ( [ i n i t e x p r ] ; [ c o n d i t i o n ] ; [ u p d a t e e x p r ] ) {
s t a t e m e n t s
}
f o r ( v a r i n o b j e c t ) {
s t a t e m e n t s
}
w h i l e ( c o n d i t i o n ) {
s t a t e m e n t s
}
s w i t c h ( e x p r e s s i o n ) {
c a s e l a b e l N :
s t a t e m e n t s
[ b r e a k ]
. . .
[ d e f a u l t :
s t a t e m e n t s ]
}
N 4 , I E 4
l a b e l :
N 4 , I E 4
c o n t i n u e [ l a b e l ]
N 4 , I E 4
b r e a k [ l a b e l ]
N 4 , I E 4
t r y {
s t a t e m e n t s t o t e s t
}
[ c a t c h ( e r r o r I n f o ) {
s t a t e m e n t s i f e x c e p t i o n o c c u r s i n t r y b l o c k
} ]
[ f i n a l l y {
s t a t e m e n t s t o r u n , e x c e p t i o n o r n o t
} ]
N 6 , W 5
t h r o w v a l u e
N 6 , W 5
C o n t r o l S t a t e m e n t s
w i t h ( o b j e c t ) {
s t a t e m e n t s
}

d o {
s t a t e m e n t s
} w h i l e ( c o n d i t i o n )
N 4 , I E 4
2
C o r e J a v a S c r i p t / J S c r i p t / E C M A S c r i p t ( N N 2 + , I E 3 + ) Q u i c k R e f e r e n c e
2 0 0 1 D a n n y G o o d m a n ( w w w . d a n n y g . c o m ) . A l l R i g h t s R e s e r v e d .
J S B 4
3 7
3 6
3 4
3 8
3 5
3 5
3 5
4 1
4 2
3 9
3 9
Comparison
== Equals
===
N4, IE4
Strictly equals
!= Does not equal
!==
N4, IE4
Strictly does not equal
> Is greater than
>= Is greater than or equal to
< Is less than
<= Is less than or equal to
Arithmetic
+ Plus (and string concat.)
- Minus
* Multiply
/ Divide
% Modulo
++ Increment
-- Decrement
-val Negation
Assignment
= Equals
+= Add by value
-= Subtract by value
*= Multiply by value
/= Divide by value
%= Modulo by value
<<= Left shift by value
>>= Right shift by value
>>>= Zero fill by value
&= Bitwise AND by value
|= Bitwise OR by value
^= Bitwise XOR by value
Boolean
&& AND
|| OR
! NOT
Bitwise
& Bitwise AND
| Bitwise OR
^ Bitwise XOR
~ Bitwise NOT
<< Left shift
>> Right shift
>>> Zero fill right shift
Miscellaneous
, Series delimiter
delete
N4, IE4
Property destroyer
in
N6, IE5.5
Item in object
instanceof
N6,W5
Instance of
new Object creator
this Object self-reference
typeof
N3, IE3
Value type
void
N3, IE3
Return no value
Operators
3
Text & Fonts
color
IE4, N6
font
IE4, N6
fontFamily
IE4, N6
fontSize
IE4, N6
fontSizeAdjust
M5, N6
fontStretch
M5, N6
fontStyle
IE4, N6
fontVariant
IE4, N6
fontWeight
IE4, N6
letterSpacing
IE4, N6
lineBreak
IE5
lineHeight
IE4, N6
quotes
M5, N6
rubyAlign
IE5
rubyOverhang
IE5
rubyPosition
IE5
textAlign
IE4, N6
textAlignLast
IE5.5
textAutospace
W5
textDecoration
IE4, N6
textDecorationBlink
IE-Only
textDecorationLineThrough
IE-Only
textDecorationNone
IE-Only
textDecorationOverline
IE-Only
textDecorationUnderline
IE-Only
textIndent
IE4, N6
textJustify
IE5
textJustifyTrim
IE5
textKashidaSpace
IE5.5
textShadow
M5, N6
textTransform
IE4, N6
textUnderlinePosition
IE5.5
unicodeBidi
IE5, N6
whiteSpace
IE4, N6
wordBreak
W5
wordSpacing
IE4, N6
wordWrap
IE5.5
writingMode
IE5.5
style
IE4,N6
Inline Display & Layout
clear
IE4, N6
clip
IE4, N6
clipBottom
W5
clipLeft
W5
clipRight
W5
clipTop
W5
content
M5, N6
counterIncrement
M5, N6
counterReset
M5, N6
cssFloat
M5, N6
cursor
IE4, N6
direction
IE5, N6
display
IE4, N6
filter
W4
floatStyle
M4
layoutGrid
W5
layoutGridChar
W5
layoutGridLine
W5
layoutGridMode
W5
layoutGridType
W5
markerOffset
M5, N6
marks
M5, N6
maxHeight
M5, N6
maxWidth
M5, N6
minHeight
M5, N6
minWidth
M5, N6
overflow
IE4, N6
overflowX
W5
overflowY
W5
styleFloat
IE-Only
verticalAlign
IE4, N6
visibility
IE4, N6
width
IE4, N6
zoom
IE5.5
Lists
listStyle
IE4, N6
listStyleImage
IE4, N6
listStylePosition
IE4, N6
listStyleType
IE4, N6
Scrollbars
scrollbar3dLightColor
IE5.5
scrollbarArrowColor
IE5.5
scrollbarBaseColor
IE5.5
scrollbarDarkShadowColor
IE5.5
scrollbarFaceColor
IE5.5
scrollbarHighlightColor
IE5.5
scrollbarShadowColor
IE5.5
scrollbarTrackColor
IE5.5
Miscellaneous
accelerator
W5
behavior
W5
cssText
IE4, N6
imeMode
W5
Printing
orphans
M5, N6
widows
M5, N6
page
M5, N6
pageBreakAfter
IE4, N6
pageBreakBefore
IE4, N6
pageBreakInside
M5, N6
size
N6
Tables
borderCollapse
M5, N6
borderSpacing
M5, N6
captionSide
M5, N6
emptyCells
M5, N6
tableLayout
IE5, N6
Borders & Edges
border
IE4, N6
borderBottom
IE4, N6
borderLeft
IE4, N6
borderRight
IE4, N6
borderTop
IE4, N6
borderBottomColor
IE4, N6
borderLeftColor
IE4, N6
borderRightColor
IE4, N6
borderTopColor
IE4, N6
borderBottomStyle
IE4, N6
borderLeftStyle
IE4, N6
borderRightStyle
IE4, N6
borderTopStyle
IE4, N6
borderBottomWidth
IE4, N6
borderLeftWidth
IE4, N6
borderRightWidth
IE4, N6
borderTopWidth
IE4, N6
borderColor
IE4, N6
borderStyle
IE4, N6
borderWidth
IE4, N6
margin
IE4, N6
marginBottom
IE4, N6
marginLeft
IE4, N6
marginRight
IE4, N6
marginTop
IE4, N6
outline
M5, N6
outlineColor
M5, N6
outlineStyle
M5, N6
outlineWidth
M5, N6
padding
IE4, N6
paddingBottom
IE4, N6
paddingLeft
IE4, N6
paddingRight
IE4, N6
paddingTop
IE4, N6
Background
background
IE4, N6
backgroundAttachment
IE4, N6
backgroundColor
IE4, N6
backgroundImage
IE4, N6
gackgroundPosition
IE4, N6
backgroundPositionX
IE-Only
backgroundPositionY
IE-Only
backgroundRepeat
IE4, N6
Positioning
bottom
IE5, N6
height
IE4, N6
left
IE4, N6
right
IE5, N6
top
IE4, N6
width
IE4, N6
pixelBottom
IE/W-Only
pixelHeight
IE-Only
pixelLeft
IE-Only
pixelRight
IE/W-Only
pixelTop
IE-Only
pixelWidth
IE-Only
posBottom
IE/W-Only
posHeight
IE-Only
posLeft
IE-Only
posRight
IE/W-Only
posTop
IE-Only
posWidth
IE-Only
position
IE4, N6
zIndex
IE4, N6
IE4+, NN6+style Object Properties
2001Danny Goodman(www.dannyg.com). All RightsReserved.
JSB4
JavaScri pt and
Browser Objects
Qui ck Reference
Appendi x A
JavaScri pt Bi bl e, 4th Edi ti on
by Danny Goodman
How to Use Thi s Qui ck Reference
Thi s gui de contai ns qui ck reference i nfo for the core JavaScri pt
l anguage, the ori gi nal document object model (2 pp), the I E4+DHTML
object model (4 pp), and the W3C DOM object model (4 pp) as
i mpl emented i n I E5+ and NN6. Al l -uppercase object names refer
to HTML el ements (I E4+ and W3C DOMs). The three col umns
i n each box l i st the objects properti es,methods, and event handl ers
i n that order. Read the compati bi l i ty gui des for each secti on.
Numbers i n the upper ri ght corners of object squares are chapter
numbers i n whi ch the object i s covered i n detai l .
Basi c browser and operati ng system notati on codes are as fol l ows:
N Netscape Navi gator I E MS I nternet Expl orer
W Wi n32 OS M Maci ntosh OS
See the accompanyi ng fi l e for pri nti ng and col l ati ng i nstructi ons
i n bookl et or broadsi de confi gurati ons.
40
30
c a p t u r e E v e n t s ( t y p e )
N 4 - O n l y
c l e a r ( )
c l o s e ( )
g e t S e l e c t i o n ( )
N 4 , ( 2 )
h a n d l e E v e n t ( e v e n t )
N 4 - O n l y
o p e n ( " m i m e t y p e " [ , r e p l a c e ] )
( 3 )
r e l e a s e E v e n t s ( t y p e )
N 4 - O n l y
r o u t e E v e n t ( e v e n t )
N 4 - O n l y
w r i t e ( " s t r i n g " )
w r i t e l n ( " s t r i n g " )
a l i n k C o l o r
a n c h o r s [ ]
a p p l e t s [ ]
N 3 , I E 4
b g C o l o r
c o o k i e
d o m a i n
N 3 , I E 4
e m b e d s [ ]
N 3 , I E 4
f g C o l o r
f o r m s [ ]
h e i g h t
N 4
i m a g e s [ ]
N 3 , I E 4
l a s t M o d i f i e d
l a y e r s [ ]
N 4 - O n l y
l i n k C o l o r
l i n k s [ ]
l o c a t i o n
( 1 )
r e f e r r e r
t i t l e
U R L
N 3 , I E 4
v l i n k C o l o r
w i d t h
N 4
d o c u m e n t
( N o n e )
( 1 ) R e p l a c e d b y t h e U R L p r o p e r t y i n N a v i g a t o r 3 .
( 2 ) M 4 h a s a d o c u m e n t . s e l e c t i o n p r o p e r t y t o r e t r i e v e t h e c u r r e n t l y s e l e c t e d t e x t .
( 3 ) m i m e t y p e p a r a m e t e r n e w i n M 4 , b u t o n l y " t e x t / h t m l " t y p e s u p p o r t e d .
l o c a t i o n
a s s i g n ( " U R L " )
r e l o a d ( [ u n c o n d i t i o n a l ] )
N 3 , I E 4
r e p l a c e ( " U R L " )
N 3 , I E 4
h a s h
h o s t
h o s t n a m e
h r e f
p a t h n a m e
p o r t
p r o t o c o l
( N o n e )
a b o v e
b a c k g r o u n d
b e l o w
b g C o l o r
c l i p . b o t t o m
c l i p . h e i g h t
c l i p . l e f t
c l i p . r i g h t
c l i p . t o p
c l i p . w i d t h
d o c u m e n t
l e f t
n a m e
p a g e X
p a g e Y
p a r e n t L a y e r
s i b l i n g A b o v e
s i b l i n g B e l o w
s r c
t o p
v i s i b i l i t y
z I n d e x
l a y e r
N 4 - O n l y
l o a d ( " f i l e n a m e " , y )
m o v e A b o v e ( l a y e r O b j )
m o v e B e l o w ( l a y e r O b j )
m o v e B y ( x , y )
m o v e T o ( x , y )
m o v e T o A b s o l u t e ( x , y )
r e s i z e B y ( x , y )
r e s i z e T o ( w i d t h , h e i g h t )
o n B l u r
o n F o c u s
o n L o a d
o n M o u s e O u t
o n M o u s e O v e r
o n M o u s e U p
_ c o n t e n t
N 6
a p p C o r e
N 6
c l i e n t I n f o r m a t i o n
I E 4

c l i p b o a r d D a t a
W 5
c l o s e d
N 3 , I E 4
C o m p o n e n t s [ ]
N 6
c o n t r o l l e r s [ ]
N 6
c r y p t o
N 6
d e f a u l t S t a t u s
d i a l o g A r g u m e n t s
W 4
d i a l o g H e i g h t
W 4
d i a l o g L e f t
W 4
d i a l o g T o p
W 4
d i a l o g W i d t h
W 4
d i r e c t o r i e s
N 4 , ( S )
d o c u m e n t
e v e n t
I E 4
e x t e r n a l
W 4
f r a m e E l e m e n t
I E 5 . 5
f r a m e s [ ]
h i s t o r y
i n n e r H e i g h t
N 4
i n n e r W i d t h
N 4
l e n g t h
N 6 , I E 4
l o a d i n g
N 4 - O n l y
l o c a t i o n
l o c a t i o n b a r
N 4 , ( S )
m e n u b a r
N 4 , ( S )
n a m e
n a v i g a t o r
N 6 , I E 4
o f f s c r e e n B u f f e r i n g
W 4

o p e n e r
I E 3 , N 3
o u t e r H e i g h t
N 4
o u t e r W i d t h
N 4
p a g e X O f f s e t
N 4
p a g e Y O f f s e t
N 4
p a r e n t
p e r s o n a l b a r
N 4 , ( S )
p k c s 1 1
N 6
p r o m p t e r
N 6
r e t u r n V a l u e
W 4
s c r e e n
N 6 , I E 4
s c r e e n L e f t
W 5
s c r e e n T o p
W 5
s c r e e n X
N 6
s c r e e n Y
N 6
s c r o l l b a r s
N 4 , ( S )
s c r o l l X
N 6
s c r o l l Y
N 6
s e l f
s i d e b a r
N 4 , ( S )
s t a t u s
s t a t u s b a r
N 4 , ( S )
t o o l b a r
N 4 , ( S )
t o p
w i n d o w
w i n d o w
( 1 ) N e w w i n d o w s p e c s f o r a l l b r o w s e r s : h e i g h t , w i d t h , t o o l b a r , l o c a t i o n , d i r e c t o r i e s , s t a t u s , m e n u b a r ,
s c r o l l b a r s , r e s i z a b l e , c o p y h i s t o r y . A d d ' l s p e c s f o r N 4 + : a l w a y s L o w e r e d ( S ) , a l w a y s R a i s e d ( S ) ,
d e p e n d e n t , h o t k e y s , i n n e r H e i g h t , i n n e r W i d t h , o u t e r H e i g h t , o u t e r W i d t h , s c r e e n X , s c r e e n Y , t i t l e b a r ( S ) ,
z - l o c k ( S ) . A d d ' l s p e c s f o r I E 4 + : c h a n n e l m o d e , f u l l s c r e e n , l e f t , t o p . A d d ' l s p e c f o r I E 5 + : t i t l e .
( 2 ) O p t i o n a l a r g s p a r a m e t e r a d d e d t o N 4 ; 3 r d p a r a m e t e r i n I E 4 i s f o r s c r i p t i n g l a n g u a g e .
h i s t o r y
l e n g t h
c u r r e n t
( S ) , ( 1 )
n e x t
( S ) , ( 1 )
p r e v i o u s
( S ) , ( 1 )
b a c k ( )
f o r w a r d ( )
g o ( i n t | " U R L " )
( N o n e )
( 1 ) A c c e s s i b l e i n N N 3 v i a a s e c u r i t y t e c h n i q u e n o l o n g e r i n u s e . A v a i l a b l e i n N N 4 + w i t h s i g n e d s c r i p t s .
b o r d e r
c o m p l e t e
h e i g h t
h s p a c e
l o w s r c
n a m e
s r c
v s p a c e
w i d t h
x
N 4
y
N 4
i m a g e
N 3 , ( 1 ) , I E 4
o n A b o r t
o n E r r o r
o n L o a d
( N o n e )
( 1 ) I m p l e m e n t e d i n I E 3 . 0 1 / M a c i n t o s h b u t n o t W i n d o w s u n t i l I E 4 .
h a s h
h o s t
h o s t n a m e
h r e f
p a t h n a m e
p o r t
p r o t o c o l
s e a r c h
t a r g e t
o n C l i c k
N 4
o n M o u s e O u t
o n M o u s e O v e r
N 3 , I E 4
a r e a
( N o n e )
4
O r i g i n a l D O M ( N N 2 + , I E 3 + ) Q u i c k R e f e r e n c e P a g e 1 o f 2
2 0 0 1 D a n n y G o o d m a n ( w w w . d a n n y g . c o m ) . A l l R i g h t s R e s e r v e d .
J S B 4
a l e r t ( " m s g " )
a t t a c h E v e n t ( " e v t " , f u n c )
I E 5
b a c k ( )
N 4
b l u r ( )
N 3 , I E 4
c a p t u r e E v e n t s ( t y p e )
N 4 - O n l y
c l e a r I n t e r v a l ( I D )
N 4 , I E 4
c l e a r T i m e o u t ( I D )
c l o s e ( )
c o n f i r m ( " m s g " )
c r e a t e P o p u p ( )
I E 5 . 5
d e t a c h E v e n t ( " e v t " , f u n c )
I E 5
d i s a b l e E x t e r n a l C a p t u r e ( )
N 4 - O n l y
e n a b l e E x t e r n a l C a p t u r e ( )
N 4 - O n l y
e x e c S c r i p t ( " e x p r s " [ , l a n g ] )
I E 4
f i n d ( [ " s t r " ] [ , c a s e , b k w d ] )
N 4 - O n l y
f i r e E v e n t ( " e v t " [ , e v t O b j ] )
I E 5 . 5
f o c u s ( )
N 3 , I E 4
f o r w a r d ( )
N 4
h a n d l e E v e n t ( e v e n t )
N 4 - O n l y
h o m e ( )
N 4
m o v e B y ( x , y )
N 4 , I E 4
m o v e T o ( x , y )
N 4 , I E 4
n a v i g a t e ( )
I E 3
o p e n ( U R L , " n a m e " , " s p e c s " )
( 1 ) , ( S )
p r i n t ( )
N 4 , I E 5
p r o m p t ( " m s g " , " r e p l y " )
r e l e a s e E v e n t s ( t y p e )
N 4 - O n l y
r e s i z e B y ( x , y )
N 4 , I E 4
r e s i z e T o ( w i d t h , h e i g h t )
N 4 , I E 4
r o u t e E v e n t ( e v e n t )
N 4 - O n l y
s c r o l l ( x , y )
N 3 , I E 4
s c r o l l B y ( x , y )
N 4 , I E 4
s c r o l l T o ( x , y )
N 4 , I E 4
s e t A c t i v e ( )
I E 5 . 5
s e t I n t e r v a l ( f u n c , m s e c [ , a r g s ] )
N 4 , I E 4 , ( 2 )
s e t T i m e o u t ( f u n c , m s e c [ , a r g s ] )
( 2 )
s h o w H e l p ( )
W 4
s h o w M o d a l D i a l o g ( )
W 4
s h o w M o d e l e s s D i a l o g ( )
W 5
s t o p ( )
N 4
o n A b o r t
N 6
o n A f t e r P r i n t
W 5
o n B e f o r e P r i n t
W 5
o n B e f o r e U n l o a d
I E 4
o n B l u r
N 3 , I E 4
o n C h a n g e
N 6
o n C l i c k
N 6
o n C l o s e
N 6
o n D r a g D r o p
N 4 , ( S )
o n E r r o r
N 3 , I E 4
o n F o c u s
N 3 , I E 4
o n H e l p
I E 4
o n K e y D o w n
N 6
o n K e y P r e s s
N 6
o n K e y U p
N 6
o n L o a d
o n M o u s e D o w n
N 6
o n M o u s e M o v e
N 6
o n M o u s e O u t
N 6
o n M o u s e O v e r
N 6
o n M o u s e U p
N 6
o n M o v e
N 4 - O n l y
o n R e s e t
N 6
o n R e s i z e
N 4 , I E 4
o n S c r o l l
I E 4
o n S e l e c t
N 6
o n S u b m i t
N 6
o n U n l o a d
n a m e
N 4 , I E 4
t e x t
N 4
x
N 4
y
N 4
( N o n e ) ( N o n e )
a n c h o r ( < A N A M E = . . . > < / A > )
h a s h
h o s t
h o s t n a m e
h r e f
p a t h n a m e
p o r t
p r o t o c o l
s e a r c h
t a r g e t
t e x t
N 4
x
N 4
y
N 4
o n C l i c k
o n D b l C l i c k
N 4 , ( 1 ) , I E 4
o n M o u s e D o w n
N 4 , I E 4
o n M o u s e O u t
N 4 , I E 4
o n M o u s e O v e r
o n M o u s e U p
N 4 , I E 4
( N o n e )
( 1 ) N o t i m p l e m e n t e d i n N N 4 / M a c
l i n k ( < A H R E F = . . . > < / A > )1 6 1 8
3 1
1 7
1 7
2 2
2 2
2 1
2 1
action
elements[]
encoding
length
method
name
target
handleEvent( evt )
N4
reset()
N3, IE4
submit()
onReset
N3, IE4
onSubmit
form
length
name
options[i]
options[i].defaultSelected
options[i].index
options[i].selected
options[i].text
options[i].value
selectedIndex
type
N3, IE4
blur()
N3, IE4
focus()
N3, IE4
handleEvent( evt )
N4
select
onBlur
onChange
onFocus
checked
defaultChecked
form
length
name
type
N3, IE4
value
click()
handleEvent( evt )
N3
radio
onClick
onMouseDown
N4, IE4
onMouseUp
N4, IE4
checked
defaultChecked
form
name
type
N3, IE4
value
click()
handleEvent( evt )
N3
checkbox
onClick
onMouseDown
N4, IE4
onMouseUp
N4, IE4
checked
form
name
type
N3, IE4
value
click()
handleEvent( evt )
N3
button, reset, submit
onClick
onMouseDown
N4, IE4
onMouseUp
N4, IE4
(1) Not available for textarea object.
(2) Password value property returns empty string in NN2.
defaultValue
(1)
form
name
type
N3, IE4
value
(2)
blur()
focus()
handleEvent( evt )
N4
select()
text, textarea, password, hidden
onBlur
onChange
onFocus
onKeyDown
N4, IE4
onKeyPress
N4, IE4
onKeyUp
N4, IE4
onSelect
(1) Netscape also calls this the fileUpload object.
form
name
type
value
blur()
focus()
handleEvent( evt )
N4
select()
N3,(1),IE4
file input control
onBlur
onFocus
onSelect
appCodeName
appMinorVersion
IE4
appName
appVersion
browserLanguage
IE4
cookieEnabled
N6, IE4
cpuClass
IE4
language
N4
mimeTypes[]
N3, M4
onLine
IE4
oscpu
N6
platform
N4, IE4
plugins[]
N3, M4
product
N6
productSub
N6
securityPolicy
N6
systemLanguage
IE4
userAgent
userLanguage
IE4
userProfile
IE4
vendor
N6
vendorSub
N6
javaEnabled()
N3, M4
preference(name[, val ])
N4,(S)
taintEnabled()
N3, M4
navigator
name
filename
description
length
refresh()
plugin
N3,M4
description
enabledPlugin
type
suffixes
(None)
N3,M4
mimeType
(1)N4+ only.
(2)IE4+ only.
availHeight
availLeft
(1)
availTop
(1)
availWidth
bufferDepth
(2)
colorDepth
fontSmoothingEnabled
(2)
height
pixelDepth
updateInterval
(2)
width
(None)
screen
N4,IE4
5
Page 2 of 2 Original DOM (NN2+, IE3+) Quick Reference
2001Danny Goodman(www.dannyg.com). All RightsReserved.
JSB4
Original DOM
Compatibility Guide
Basel i ne browsers for thi s secti on are
NN2, I E3/J1, and I E 3.01/Mac. An i tem wi th
no notati on i s compati bl e back to that l evel .
Notati ons i ndi cate the browser and versi on
i n whi ch the property, method, or event handl er
was i ntroduced. An i tem showi ng to be i ntroduced
onl y i n I E, for exampl e, does not exi st for any
NN versi on.
Except for the window and navigator objects
(whose l i sti ngs cover all browsers and
versi ons), new features l i sted i n thi s secti on
cover onl y through NN4 (and I E4 when they
matched a new NN4 feature). Notati ons are
as fol l ows:
N3 New i n NN3
N4 New i n NN4
J2 New i n I E3, JScri pt.dl l ver.2
I E4 New i n I E4, al l OSes
(S) Requi res si gned scri pts (NN)
Addi ti onal window and navigator object
notati ons are:
W4 I E4+/Wi ndows onl y
W5 I E5+/Wi ndows onl y
I E5 I E5+ al l OSes
I E5.5 I E5.5+ (onl y Wi n tested)
M4 I E4+/Mac onl y
M5 I E5+/Mac onl y
N6 New i n NN6
Except for i tems marked N4-Onl y (whi ch are
not carri ed over i nto NN6), an i tem l i sted for
an earl y browser i s al so avai l abl e i n the I E4+
and/or W3C DOM object model s.
(None) means that no methods or events
exi st for the current object through I E3 and
NN4.
23
24
24
24
26
28
28 28
28
25
26
a c c e s s K e y
a l l [ ]
b e h a v i o r U r n s [ ]
W 5
c a n H a v e C h i l d r e n
W 5
c a n H a v e H T M L
I E 5 . 5
c h i l d r e n
c l a s s N a m e
c l i e n t H e i g h t
c l i e n t L e f t
c l i e n t T o p
c l i e n t W i d t h
c o n t e n t E d i t a b l e
I E 5 . 5
c u r r e n t S t y l e
I E 5
d a t a F l d
W 4
d a t a F o r m a t A s
W 4
d a t a S r c
W 4
d i s a b l e d
d o c u m e n t
f i l t e r s [ ]
W 4
h i d e F o c u s
I E 5 . 5
i d
i n n e r H T M L
i n n e r T e x t
i s C o n t e n t E d i t a b l e
I E 5 . 5
i s D i s a b l e d
I E 5 . 5
i s M u l t i L i n e
I E 5 . 5
i s T e x t E d i t
W 4
l a n g
l a n g u a g e
l e n g t h
( 1 )
o f f s e t H e i g h t
o f f s e t L e f t
o f f s e t P a r e n t
o f f s e t T o p
o f f s e t W i d t h
o u t e r H T M L
o u t e r T e x t
p a r e n t E l e m e n t
W 4
p a r e n t T e x t E d i t
r e a d y S t a t e
r e c o r d N u m b e r
W 4
r u n t i m e S t y l e
W 5
s c o p e N a m e
W 5
s c r o l l H e i g h t
s c r o l l L e f t
s c r o l l T o p
s c r o l l W i d t h
s o u r c e I n d e x
s t y l e
t a b I n d e x
t a g N a m e
t a g U r n
W 5
t i t l e
u n i q u e I D
W 5
o n A c t i v a t e
I E 5 . 5
o n B e f o r e C o p y
W 5
o n B e f o r e C u t
W 5
o n B e f o r e D e a c t i v a t e
I E 5 . 5
o n B e f o r e E d i t F o c u s
W 5
o n B e f o r e P a s t e
W 5
o n B l u r
o n C l i c k
o n C o n t e x t M e n u
W 5
o n C o n t r o l S e l e c t
I E 5 . 5
o n C o p y
W 5
o n C u t
W 5
o n D b l C l i c k
o n D e a c t i v a t e
I E 5 . 5
o n D r a g
W 5
o n D r a g E n d
W 5
o n D r a g E n t e r
W 5
o n D r a g L e a v e
W 5
o n D r a g O v e r
W 5
o n D r a g S t a r t
W 5
o n D r o p
W 5
o n F i l t e r C h a n g e
W 4
o n F o c u s
o n H e l p
W 4 , M 5
o n K e y D o w n
o n K e y P r e s s
o n K e y U p
o n L o s e C a p t u r e
W 5
o n M o u s e D o w n
o n M o u s e E n t e r
I E 5 . 5
o n M o u s e L e a v e
I E 5 . 5
o n M o u s e M o v e
o n M o u s e O u t
o n M o u s e O v e r
o n M o u s e U p
o n P a s t e
W 5
o n P r o p e r t y C h a n g e
W 5
o n R e a d y S t a t e C h a n g e
o n R e s i z e
o n R e s i z e E n d
I E 5 . 5
o n R e s i z e S t a r t
I E 5 . 5
o n S e l e c t S t a r t
a d d B e h a v i o r ( " U R L " )
W 5
a p p l y E l e m e n t ( e l e m [ , t y p e ] )
W 5
a t t a c h E v e n t ( " e v t " , f u n c )
W 5
b l u r ( )
c l e a r A t t r i b u t e s ( )
W 5
c l i c k ( )
c o m p o n e n t F r o m P o i n t ( x , y )
W 5
c o n t a i n s ( e l e m )
d e t a c h E v e n t ( " e v t " , f u n c )
W 5
f i r e E v e n t ( " e v t " [ , e v t ] )
I E 5 . 5
f o c u s ( )
g e t A d j a c e n t T e x t ( )
W 5
g e t A t t r i b u t e ( " a t t r " [ , c a s e ] )
g e t B o u n d i n g C l i e n t R e c t ( )
W 5
g e t C l i e n t R e c t s ( )
W 5
g e t E x p r e s s i o n ( )
W 5
i n s e r t A d j a c e n t E l e m e n t ( )
W 5
i n s e r t A d j a c e n t H T M L ( )
i n s e r t A d j a c e n t T e x t ( )
i t e m ( i n d e x [ , s u b i n d e x ] )
( 1 )
m e r g e A t t r i b u t e s ( )
W 5
r e l e a s e C a p t u r e ( )
W 5
r e m o v e A t t r i b u t e ( " a t t r " [ , c a s e ] )
r e m o v e B e h a v i o r ( I D )
W 5
r e m o v e E x p r e s s i o n ( " p r o p " )
W 5
r e m o v e N o d e ( c h i l d r e n )
W 5
r e p l a c e A d j a c e n t T e x t ( " l o c " , " t x t " )
W 5
r e p l a c e N o d e ( n e w )
W 5
s c r o l l I n t o V i e w ( t o p )
s e t A c t i v e ( )
I E 5 . 5
s e t A t t r i b u t e ( " a t t r " , v a l [ , c a s e ] )
s e t C a p t u r e ( c o n t a i n e r )
W 5
s e t E x p r e s s i o n ( " p r o p " , " e x p r " , " l a n g " )
W 5
s w a p N o d e ( n o d e )
W 5
t a g s ( " t a g " )
( 1 )
u r n s ( " U R N " )
W 5 , ( 1 )
A l l H T M L E l e m e n t s
( 1 ) P r o p e r t y o r m e t h o d o f a l l o b j e c t c o l l e c t i o n s .
d o c u m e n t
i s O p e n
( N o n e )h i d e ( )
s h o w ( )
p o p u p
W 5 . 5
a c t i v e E l e m e n t
a l i n k C o l o r
a l l
a n c h o r s [ ]
a p p l e t s [ ]
b g C o l o r
b o d y
c h a r s e t
c o o k i e
d e f a u l t C h a r s e t
d e s i g n M o d e
W 5
d o c t y p e
d o m a i n
e m b e d s [ ]
e x p a n d o
f g C o l o r
f i l e C r e a t e d D a t e
f i l e M o d i f i e d D a t e
f i l e S i z e
f o r m s [ ]
f r a m e s [ ]
i m a g e s [ ]
l a s t M o d i f i e d
l i n k C o l o r
l i n k s [ ]
l o c a t i o n
m e d i a
I E 5 . 5
m i m e T y p e
W 5
n a m e s p a c e s [ ]
I E 5 . 5
p a r e n t W i n d o w
p l u g i n s [ ]
p r o t o c o l
r e a d y S t a t e
r e f e r r e r
s c r i p t s [ ]
s e c u r i t y
I E 5 . 5
s e l e c t i o n
s t y l e S h e e t s [ ]
t i t l e
u n i q u e I D
U R L
U R L U n e n c o d e d
I E 5 . 5
v l i n k C o l o r
o n A c t i v a t e
I E 5 . 5
o n B e f o r e C u t
W 5
o n B e f o r e D e a c t i v a t e
I E 5 . 5
o n B e f o r e E d i t F o c u s
W 5
o n B e f o r e P a s t e
W 5
o n C l i c k
o n C o n t e x t M e n u
W 5
o n C o n t r o l S e l e c t
I E 5 . 5
o n C u t
o n D b l C l i c k
o n D e a c t i v a t e
I E 5 . 5
o n D r a g
W 5
o n D r a g E n d
W 5
o n D r a g E n t e r
W 5
o n D r a g L e a v e
W 5
o n D r a g O v e r
W 5
o n D r a g S t a r t
W 5
o n D r o p
W 5
o n H e l p
W 4 , M 5
o n K e y D o w n
o n K e y P r e s s
o n K e y U p
o n M o u s e D o w n
o n M o u s e M o v e
o n M o u s e O u t
o n M o u s e O v e r
o n M o u s e U p
o n P a s t e
o n P r o p e r t y C h a n g e
W 5
o n R e a d y S t a t e C h a n g e
o n R e s i z e E n d
I E 5 . 5
o n R e s i z e S t a r t
I E 5 . 5
o n S e l e c t i o n C h a n g e
o n S t o p
I E 5
a t t a c h E v e n t ( " e v t " , f u n c )
I E 5
c l e a r ( )
c l e a r A t t r i b u t e s ( )
I E 5
c l o s e ( )
c r e a t e E l e m e n t ( " t a g " )
c r e a t e E v e n t O b j e c t ( [ e v t ] )
I E 5 . 5
c r e a t e S t y l e S h e e t ( [ " U R L " [ , i n d e x ] ] )
d e t a c h E v e n t ( " e v t " , f u n c )
I E 5
e l e m e n t F r o m P o i n t ( x , y )
e x e c C o m m a n d ( " c m d " [ , U I ] [ , a r g ] )
f o c u s ( )
m e r g e A t t r i b u t e s ( o b j )
W 5
o p e n ( [ " m i m e T y p e " [ , r e p l a c e ] )
q u e r y C o m m a n d E n a b l e d ( " c m d " )
q u e r y C o m m a n d I n d t e r m ( " c m d " )
q u e r y C o m m a n d S t a t e ( " c m d " )
q u e r y C o m m a n d S u p p o r t e d ( " c m d " )
q u e r y C o m m a n d T e x t ( " c m d " )
q u e r y C o m m a n d V a l u e ( " c m d " )
r e c a l c ( a l l F l a g )
W 5
r e l e a s e C a p t u r e ( )
I E 5
s e t A c t i v e ( )
I E 5 . 5
w r i t e ( " s t r " )
w r i t e l n ( " s t r " )
d o c u m e n t
a l i n k
b a c k g r o u n d
b g C o l o r
b g P r o p e r t i e s
b o t t o m M a r g i n
l e f t M a r g i n
l i n k
n o W r a p
r i g h t M a r g i n
s c r o l l
s c r o l l L e f t
s c r o l l T o p
t e x t
t o p M a r g i n
v L i n k
o n A f t e r P r i n t
W 5
o n B e f o r e P r i n t
W 5
o n S c r o l l
c r e a t e C o n t r o l R a n g e ( )
W 5
c r e a t e T e x t R a n g e ( )
d o S c r o l l ( [ " s c r o l l A c t i o n " ] )
W 5
B O D Y
b o r d e r C o l o r
D o c u m e n t
f r a m e B o r d e r
h e i g h t
m a r g i n H e i g h t
m a r g i n W i d t h
n o R e s i z e
s c r o l l i n g
s r c
w i d t h
F R A M E
a l i g n
D o c u m e n t
f r a m e B o r d e r
f r a m e S p a c i n g
h s p a c e
m a r g i n H e i g h t
m a r g i n W i d t h
s c r o l l i n g
s r c
v s p a c e
I F R A M E
c o l o r
f a c e
s i z e
B A S E F O N T
t e x t
T I T L E
h r e f
t a r g e t
B A S E
6
I E 4 + D H T M L D O M Q u i c k R e f e r e n c e P a g e 1 o f 4
2 0 0 1 D a n n y G o o d m a n ( w w w . d a n n y g . c o m ) . A l l R i g h t s R e s e r v e d .
J S B 4
b o r d e r
b o r d e r C o l o r
c o l s
f r a m e B o r d e r
f r a m e S p a c i n g
r o w s
F R A M E S E T
c h a r s e t
c o n t e n t
h t t p E q u i v
n a m e
u r l
M E T A
1 5
1 6
1 6
1 6
1 6
2 0
2 0
2 0
2 0
1 8
1 8
7
action
autocomplete
W5
elements[]
encoding
enctype
length
method
name
target
onReset
onSubmit
reset()
submit()
FORM
htmlFor (None) (None)
LABEL
BUTTON
INPUT (button, reset, submit, radio, checkbox)
(See original object model button, reset, submit, radio, and checkbox object listings.)
complete
form
name
src
type
(None) (None)
INPUT (image)
maxLength
readOnly
size
onAfterUpdate
W4
onBeforeUpdate
W4
onErrorUpdate
W4
(None)
INPUT (text, password, hidden)
(See original object model text, password, and hidden object listings.)
cols
readOnly
rows
wrap
onAfterUpdate
W4
onBeforeUpdate
W4
onErrorUpdate
W4
createTextRange()
TEXTAREA
(See original object model textarea object listing.)
length
multiple
size
value
(None) options[i].add( elem[,index ])
options[i].remove()
SELECT
(See original object model select object listing.)
hash
host
hostname
href
Methods
mimeType
name
nameProp
pathname
port
protocol
protocolLong
rel
rev
search
target
urn
A (anchor/link)
behavior
bgColor
direction
height
hspace
loop
scrollAmount
scrollDelay
trueSpeed
vspace
width
onBounce
onFinish
onStart
start()
stop()
MARQUEE
align
alt
border
complete
dynsrc
fileCreatedDate
fileModifiedDate
fileSize
fileUpdatedDate
height
href
hspace
isMap
loop
lowsrc
name
nameProp
W5
protocol
src
start
useMap
vspace
width
onAbort
onError
onLoad
(None)
IMG
alt
coords
hash
host
hostname
href
noHref
pathname
port
protocol
search
shape
target
(None) (None)
AREA
areas[]
name
onScroll (None)
MAP
compact
start
type
OL
compact
type
UL
type
value
LI
compact
DL, DT, DD, DIR, MENU
Page 2 of 4 IE4+DHTML DOM Quick Reference
2001Danny Goodman(www.dannyg.com). All RightsReserved.
JSB4
IE4+ DHTML DOM
Compatibility Guide
The basel i ne browser for thi s secti on i s
MSI E 4. An i tem wi th no notati on i s
compati bl e back to that l evel for al l
OS versi ons. Notati ons as fol l ows:
W4 I E4+/Wi ndows onl y
W5 I E5+/Wi ndows onl y
I E5 I E5+ al l OSes
I E5.5 I E5.5+ (onl y Wi n tested)
M5 I E5+/Mac
Al l HTML el ement objects share
i tems from Al l HTML box on Page 1.
(None) means no speci al methods or
events for the current object.
defaultSelected
form
selected
text
value
(None)
OPTION
(None)
23
23
24
24
25
25
26
26
27
27
27
21 22
22
22
19
a l i g n
b g C o l o r
r o w s
v A l i g n
( N o n e )d e l e t e R o w ( i )
i n s e r t R o w ( i )
m o v e R o w ( s r c I n d e x , d e s t I n d e x )
i
T B O D Y , T F O O T , T H E A D
a l i g n
b a c k g r o u n d
b g C o l o r
b o r d e r
b o r d e r C o l o r
b o r d e r C o l o r D a r k
b o r d e r C o l o r L i g h t
c a p t i o n
c e l l P a d d i n g
c e l l S p a c i n g
c e l l s [ ]
c o l s [ ]
d a t e P a g e S i z e
f r a m e
h e i g h t
r o w s [ ]
r u l e s
t B o d i e s [ ]
t F o o t
t H e a d
w i d t h
o n S c r o l lc r e a t e C a p t i o n ( )
c r e a t e T F o o t ( )
c r e a t e T H e a d ( )
d e l e t e C a p t i o n ( )
d e l e t e R o w ( i )
d e l e t e T F o o t ( )
d e l e t e T H e a d ( )
f i r s t P a g e ( )
W 5
i n s e r t R o w ( i )
l a s t P a g e ( )
W 5
m o v e R o w ( s r c I n d e x , d e s t I n d e x )
W 5
n e x t P a g e ( )
W 4
p r e v i o u s P a g e ( )
W 4
r e f r e s h ( )
T A B L E
a l i g n
v A l i g n
C A P T I O N
a l i g n
s p a n
v A l i g n
w i d t h
C O L , C O L G R O U P
a l i g n
b a c k g r o u n d
b g C o l o r
b o r d e r C o l o r
b o r d e r C o l o r D a r k
b o r d e r C o l o r L i g h t
c e l l I n d e x
c o l S p a n
h e i g h t
n o W r a p
r o w S p a n
v A l i g n
w i d t h
T D , T H
a l i g n
b g C o l o r
b o r d e r C o l o r
b o r d e r C o l o r D a r k
b o r d e r C o l o r L i g h t
c e l l s [ ]
h e i g h t
r o w I n d e x
s e c t i o n R o w I n d e x
v A l i g n
( N o n e )d e l e t e C e l l ( i )
i n s e r t C e l l ( i )
T R
c o l o r
f a c e
s i z e
F O N T
a l i g n
c o l o r
n o S h a d e
s i z e
w i d t h
H R
a l i g n
H 1 . . . H 6
B R
c l e a r
b o u n d i n g H e i g h t
b o u n d i n g L e f t
b o u n d i n g T o p
b o u n d i n g W i d t h
h t m l T e x t
o f f s e t L e f t
o f f s e t T o p
t e x t
( N o n e )c o l l a p s e ( [ s t a r t ] )
c o m p a r e E n d P o i n t s ( " t y p e " , r a n g e )
d u p l i c a t e ( )
e x e c C o m m a n d ( " c m d " [ , U I [ , v a l ] ] )
e x p a n d ( " u n i t " )
f i n d T e x t ( " s t r " [ , s c o p e , f l a g s ] )
g e t B o o k m a r k ( )
g e t B o u n d i n g C l i e n t R e c t ( )
g e t C l i e n t R e c t s ( )
i n R a n g e ( r a n g e )
i s E q u a l ( r a n g e )
m o v e ( " u n i t " [ , c o u n t ] )
m o v e E n d ( " u n i t " [ , c o u n t ] )
m o v e S t a r t ( " u n i t " [ , c o u n t ] )
m o v e T o B o o k m a r k ( " b o o k m a r k " )
m o v e T o E l e m e n t T e x t ( e l e m )
m o v e T o P o i n t ( x , y )
p a r e n t E l e m e n t ( )
p a s t e H T M L ( " H T M L T e x t " )
q u e r y C o m m a n d E n a b l e d ( " c m d " )
q u e r y C o m m a n d I n d e t e r m ( " c m d " )
q u e r y C o m m a n d S t a t e ( " c m d " )
q u e r y C o m m a n d S u p p o r t e d ( " c m d " )
q u e r y C o m m a n d T e x t ( " c m d " )
q u e r y C o m m a n d V a l u e ( " c m d " )
s c r o l l I n t o V i e w ( )
s e l e c t ( )
s e t E n d P o i n t ( " t y p e " , r a n g e )
T e x t R a n g e
W 4
t y p e ( N o n e )c l e a r ( )
c r e a t e R a n g e ( )
e m p t y ( )
s e l e c t i o n
M 4
d a t a
l e n g t h
n e x t S i b l i n g
n o d e N a m e
n o d e T y p e
n o d e V a l u e
p a r e n t N o d e
p r e v i o u s S i b l i n g
( N o n e )s p l i t T e x t ( o f f s e t )
T e x t N o d e
I E 5
b o t t o m
l e f t
r i g h t
t o p
( N o n e )( N o n e )
T e x t R e c t a n g l e
I E 5
8
I E 4 + D H T M L D O M Q u i c k R e f e r e n c e P a g e 3 o f 4
2 0 0 1 D a n n y G o o d m a n ( w w w . d a n n y g . c o m ) . A l l R i g h t s R e s e r v e d .
J S B 4
I E 4 + D H T M L D O M
C o m p a t i b i l i t y G u i d e
T h e b a s e l i n e b r o w s e r f o r t h i s s e c t i o n i s
M S I E 4 . A n i t e m w i t h n o n o t a t i o n i s
c o m p a t i b l e b a c k t o t h a t l e v e l f o r a l l
O S v e r s i o n s . N o t a t i o n s a s f o l l o w s :
W 4 I E 4 + / W i n d o w s o n l y
W 5 I E 5 + / W i n d o w s o n l y
I E 5 I E 5 + a l l O S e s
I E 5 . 5 I E 5 . 5 + ( o n l y W i n t e s t e d )
M 5 I E 5 + / M a c
A l l H T M L e l e m e n t o b j e c t s s h a r e
i t e m s f r o m A l l H T M L b o x o n P a g e 1 .
( N o n e ) m e a n s n o s p e c i a l m e t h o d s o r
e v e n t s f o r t h e c u r r e n t o b j e c t .
T h i s Q u i c k R e f e r e n c e d o e s n o t c o n t a i n
l i s t i n g s f o r M i c r o s o f t s s e p a r a t e X M L
D O M .
2 7
2 7
1 9
1 9
1 9
1 9
2 7
2 72 7
2 7
1 9
1 9
1 9
1 9
altKey
altLeft
IE5.5
behaviorCookie
W5.5
behaviorPart
W5.5
bookmarks
W4
boundElements
button
cancelBubble
clientX
clientY
contentOverflow
ctrlKey
ctrlLeft
IE5.5
dataFld
W4
dataTransfer
W5
fromElement
keyCode
nextPage
W5.5
offsetX
offsetY
propertyName
W5
qualifier
W4
reason
W4
recordset
W4
repeat
W5
returnValue
saveType
W5.5
screenX
screenY
shiftKey
shiftLeft
IE5.5
srcElement
srcFilter
W4
srcUrn
W5
toElement
type
x
y
event
media
type
(None) (None)
STYLE
src
XMLDocument
(None) (None)
XML
cssText
IE5
disabled
href
id
imports[]
media
owningElement
pages[]
IE5.5
parentStyleSheet
readOnly
rules[]
title
type
(None) addImport("URL"[,index ])
addRule("selector ","styleSpec "[,index ])
removeRule( index )
styleSheet
readOnly
selectorText
style
(None) (None)
rule
(See style object)
currentStyle , runtimeStyle
IE5 IE5.5
align
height
hidden
name
pluginspage
src
units
width
onLoad
onScroll
(None)
EMBED
align
altHTML
code
codeBase
height
hspace
name
vspace
width
onCellChange
W5
onDataAvailable
W5
onDatasetChanged
W5
onDatasetComplete
W5
onLoad
onRowEnter
W5
onRowExit
W5
onRowsDelete
W5
onRowsInserted
W5
onScroll
(None)
APPLET
align
altHTML
BaseHref
classid
code
codeBase
codeType
height
hspace
name
object
type
vspace
width
onCellChange
W5
onDataAvailable
W5
onDatasetChanged
W5
onDatasetComplete
W5
onLoad
onRowEnter
W5
onRowExit
W5
onRowsDelete
W5
onRowsInserted
W5
onScroll
(None)
OBJECT
disabled
href
hreflang
media
rel
rev
styleSheet
target
type
onLoad (None)
LINK
defer
event
htmlFor
language
src
text
type
(None) (None)
SCRIPT
9
Page 4 of 4 IE4+DHTML DOM Quick Reference
2001Danny Goodman(www.dannyg.com). All RightsReserved.
JSB4
20
20
30
30
30
30 29 32
32
32
32
W5
a t t r i b u t e s [ ]
c h i l d N o d e s [ ]
c l a s s N a m e
d i r
f i r s t C h i l d
i d
i n n e r H T M L
( 1 )
l a n g
l a s t C h i l d
l e n g t h
( 3 )
l o c a l N a m e
n a m e s p a c e U R I
n e x t S i b l i n g
n o d e N a m e
n o d e T y p e
n o d e V a l u e
o f f s e t H e i g h t
( 1 )
o f f s e t L e f t
( 1 )
o f f s e t P a r e n t
( 1 )
o f f s e t T o p
( 1 )
o f f s e t W i d t h
( 1 )
o w n e r D o c u m e n t
p a r e n t N o d e
p r e f i x
p r e v i o u s S i b l i n g
s t y l e
t a b I n d e x
t a g N a m e
t i t l e
o n B l u r
o n C l i c k
o n D b l C l i c k
o n F o c u s
o n K e y D o w n
o n K e y P r e s s
o n K e y U p
o n M o u s e D o w n
o n M o u s e M o v e
o n M o u s e O u t
o n M o u s e O v e r
o n M o u s e U p
o n R e s i z e
a d d E v e n t L i s t e n e r ( " e v t " , f u n c , c a p t )
( 2 )
a p p e n d C h i l d ( e l e m )
b l u r ( )
c l i c k ( )
c l o n e N o d e ( d e e p )
d i s p a t c h E v e n t ( e v t )
( 2 )
f o c u s ( )
g e t A t t r i b u t e ( " a t t r " )
g e t A t t r i b u t e N o d e ( " a t t r " )
( 2 )
g e t E l e m e n t s B y T a g N a m e ( " t a g " )
h a s C h i l d N o d e s ( )
i n s e r t B e f o r e ( n e w [ , r e f ] )
i t e m ( i n d e x )
( 3 )
n o r m a l i z e ( )
( 2 )
r e m o v e A t t r i b u t e ( " a t t r " )
r e m o v e A t t r i b u t e N o d e ( n o d e )
( 2 )
r e m o v e C h i l d ( n o d e )
r e m o v e E v e n t L i s t e n e r ( " e v t " , f u n c , c a p t )
( 2 )
r e p l a c e C h i l d ( n e w , o l d )
s e t A t t r i b u t e ( " a t t r " , v a l )
s e t A t t r i b u t e N o d e ( n o d e )
( 2 )
s u p p o r t s ( " f e a t u r e " )
( 2 )
A l l H T M L E l e m e n t s
( 1 ) O r i g i n a t i n g f r o m t h e I E 4 O b j e c t M o d e l , t h i s n o n - W 3 C i t e m i s i m p l e m e n t e d i n N 6 f o r c o n v e n i e n c e .
( 2 ) N o t i m p l e m e n t e d i n I E t h r o u g h 5 . 5 .
( 3 ) P r o p e r t y o r m e t h o d o f a l l o b j e c t c o l l e c t i o n s .
a l i n k C o l o r
a n c h o r s [ ]
a p p l e t s [ ]
a t t r i b u t e s [ ]
b g C o l o r
b o d y
c h a r a c t e r S e t
( 1 )
c h i l d N o d e s [ ]
c o o k i e
d o c t y p e
( 1 )
d o c u m e n t E l e m e n t
d o m a i n
e m b e d s [ ]
f g C o l o r
f i r s t C h i l d
f o r m s [ ]
h e i g h t
( 1 )
i m a g e s [ ]
i m p l e m e n t a t i o n
( 1 )
l a s t C h i l d
l a s t M o d i f i e d
l i n k C o l o r
l i n k s [ ]
l o c a t i o n
n a m e s p a c e U R I
n e x t S i b l i n g
n o d e N a m e
n o d e T y p e
o w n e r D o c u m e n t
( 1 )
p a r e n t N o d e
p l u g i n s
p r e v i o u s S i b l i n g
r e f e r r e r
s t y l e S h e e t s [ ]
t i t l e
U R L
v l i n k C o l o r
w i d t h
( 1 )
o n B l u r
o n C l i c k
o n D b l C l i c k
o n F o c u s
o n K e y D o w n
o n K e y P r e s s
o n K e y U p
o n M o u s e D o w n
o n M o u s e M o v e
o n M o u s e O u t
o n M o u s e O v e r
o n M o u s e U p
o n R e s i z e
c l e a r ( )
c l o s e ( )
c r e a t e A t t r i b u t e ( " n a m e " )
c r e a t e D o c u m e n t F r a g m e n t ( )
c r e a t e E l e m e n t ( " t a g " )
c r e a t e T e x t N o d e ( " t x t " )
f o c u s ( )
g e t E l e m e n t B y I d ( " I D " )
g e t E l e m e n t s B y N a m e ( " n a m e " )
g e t E l e m e n t s B y T a g N a m e ( " t a g " )
o p e n ( " m i m e T y p e " [ , r e p l a c e ] )
w r i t e ( " s t r " )
w r i t e l n ( " s t r " )
d o c u m e n t
( 1 ) N o t i m p l e m e n t e d i n I E t h r o u g h 5 . 5 .
( 1 ) N o t i m p l e m e n t e d i n I E t h r o u g h 5 . 5 .
c o n t e n t D o c u m e n t
( 1 )
f r a m e B o r d e r
l o n g D e s c
( 1 )
m a r g i n H e i g h t
m a r g i n W i d t h
n o R e s i z e
s c r o l l i n g
s r c
( N o n e )( N o n e )
F R A M E
c o l s
r o w s
( N o n e )( N o n e )
F R A M E S E T
( 1 ) N o t i m p l e m e n t e d i n I E t h r o u g h 5 . 5 .
a l i g n
c o n t e n t D o c u m e n t
( 1 )
f r a m e B o r d e r
l o n g D e s c
( 1 )
m a r g i n H e i g h t
m a r g i n W i d t h
s c r o l l i n g
s r c
I F R A M E
a l i n k
b a c k g r o u n d
b g C o l o r
l i n k
t e x t
v L i n k
( N o n e )( N o n e )
B O D Y
( 1 ) N o t i m p l e m e n t e d i n I E t h r o u g h 5 . 5 .
v e r s i o n
( 1 ) ( N o n e )( N o n e )
H T M L
( 1 ) N o t i m p l e m e n t e d i n I E t h r o u g h 5 . 5 .
p r o f i l e
( 1 )
H E A D
h r e f
t a r g e t
B A S E
c o l o r
f a c e
s i z e
B A S E F O N T
c h a r s e t
c o n t e n t
h t t p E q u i v
n a m e
u r l
M E T A
t e x t
T I T L E
1 0
W 3 C D O M ( I E 5 + , N N 6 + ) Q u i c k R e f e r e n c e P a g e 1 o f 4
2 0 0 1 D a n n y G o o d m a n ( w w w . d a n n y g . c o m ) . A l l R i g h t s R e s e r v e d .
J S B 4
W 3 C D O M
C o m p a t i b i l i t y G u i d e
B a s e l i n e b r o w s e r s f o r t h i s s e c t i o n a r e
I E 5 a n d N N 6 . A n i t e m w i t h n o n o t a t i o n
i s c o m p a t i b l e w i t h t h e s e b r o w s e r s f o r
a l l O S v e r s i o n s . O b s e r v e f o o t n o t e s f o r
i t e m s m i s s i n g f r o m I E .
A l l H T M L e l e m e n t o b j e c t s s h a r e
i t e m s f r o m A l l H T M L b o x o n P a g e 1 .
( N o n e ) m e a n s n o s p e c i a l m e t h o d s o r
e v e n t s f o r t h e c u r r e n t o b j e c t .
1 5 2 0
2 0
2 0
2 0
2 0
2 0
1 6
1 6 1 6
1 8
1 8
charset
(1)
coords
(1)
hash
host
hostname
href
hreflang
(1)
name
pathname
port
protocol
rel
rev
search
shape
(1)
target
type
(1)
A (anchor/link)
(1)Not implemented in IE through 5.5.
alt
coords
hash
host
hostname
href
noHref
pathname
port
protocol
search
shape
target
AREA
areas
name
MAP
11
Page 2 of 4 W3C DOM (IE5+, NN6+) DOM Quick Reference
2001Danny Goodman(www.dannyg.com). All RightsReserved.
JSB4
21
22
22
align
alt
border
complete
height
href
hspace
isMap
longDesc
(1)
lowsrc
lowSrc
(1)
name
src
useMap
vspace
width
onAbort
onError
onLoad
(None)
IMG
(1)Not implemented in IE through 5.5.
compact
start
type
OL
compact
type
UL
type
value
LI
compact
DL, DT, DD, DIR, MENU
acceptCharset
(1)
action
elements[]
encoding
enctype
length
method
name
target
onReset
onSubmit
reset()
submit()
FORM
(1)Not implemented in IE through 5.5.
23
align
form
(None) (None)
FIELDSET, LEGEND 23
(1)Not implemented in IE through 5.5.
accessKey
form
(1)
htmlFor
(None) (None)
LABEL 23
disabled
form
name
src
type
(None) (None)
INPUT (image) 24
disabled
maxLength
readOnly
size
(None) (None)
INPUT (text, password, hidden)
(See original object model text, password, and hidden object listings.)
25
cols
disabled
readOnly
rows
(None) (None)
TEXTAREA
(See original object model textarea object listing.)
25
27 27
27
22
form
(1)
label
(1)
(None) (None)
OPTGROUP
(1)Not implemented in IE/Windows through 5.5, but is implemented in IE5/Mac.
26
defaultSelected
disabled
form
label
(1)
selected
text
value
(None) (None)
OPTION
(1)Not implemented in IE/Windows through 5.5, but is implemented in IE5/Mac.
26
disabled
length
multiple
size
value
(None) item(i)
namedItem("optionID")
options[ i].remove()
SELECT
(See original object model select object listing.)
26
BUTTON
INPUT (button, reset, submit, radio, checkbox)
24
disabled
(See original object model button, reset, submit, radio, and checkbox object listings.)
c l e a r
B R
a l i g n
H 1 . . . H 6
( 1 ) N o t i m p l e m e n t e d i n I E t h r o u g h 5 . 5 .
c i t e
( 1 )
B L O C K Q U O T E , Q
c o l o r
f a c e
s i z e
F O N T
a l i g n
c o l o r
n o S h a d e
s i z e
w i d t h
H R
( N o n e )a l i g n
b g C o l o r
b o r d e r
c a p t i o n
c e l l P a d d i n g
c e l l S p a c i n g
f r a m e
h e i g h t
r o w s [ ]
r u l e s
s u m m a r y
( 1 )
t B o d i e s
t F o o t
t H e a d
w i d t h
o n S c r o l lc r e a t e C a p t i o n ( )
c r e a t e T F o o t ( )
c r e a t e T H e a d ( )
d e l e t e C a p t i o n ( )
d e l e t e R o w ( i )
d e l e t e T F o o t ( )
d e l e t e T H e a d ( )
i n s e r t R o w ( i )
T A B L E
( 1 ) N o t i m p l e m e n t e d i n I E t h r o u g h 5 . 5 .
a l i g n
v A l i g n
C A P T I O N
d e l e t e R o w ( i )
i n s e r t R o w ( i )
a l i g n
b g C o l o r
c h
( 1 )
c h O f f
( 1 )
r o w s
v A l i g n
( N o n e )
T B O D Y , T F O O T , T H E A D
( 1 ) N o t i m p l e m e n t e d i n I E t h r o u g h 5 . 5 .
a n c h o r N o d e
a n c h o r O f f s e t
f o c u s N o d e
f o c u s O f f s e t
i s C o l l a p s e d
r a n g e C o u n t
( N o n e )a d d R a n g e ( r a n g e )
c l e a r S e l e c t i o n ( )
c o l l a p s e ( n o d e , o f f s e t )
c o n t a i n s N o d e ( n o d e , r e c u r s e )
d e l e t e F r o m D o c u m e n t ( )
e x t e n d ( n o d e , o f f s e t )
g e t R a n g e A t ( )
r e m o v e R a n g e ( r a n g e )
s e l e c t i o n
( 1 ) , ( 2 )
( 1 ) N N 6 . 0 d o e s n o t p r o v i d e a w a y t o c r e a t e a s e l e c t i o n o b j e c t .
( 2 ) N o t i m p l e m e n t e d i n I E t h r o u g h 5 . 5 .
d a t a
l e n g t h
( N o n e )a p p e n d C h i l d ( n o d e )
a p p e n d D a t a ( " t e x t " )
c l o n e N o d e ( d e e p )
d e l e t e D a t a ( o f f s e t , c o u n t )
h a s C h i l d N o d e s ( )
i n s e r t B e f o r e ( n e w , r e f )
i n s e r t D a t a ( o f f s e t , " t e x t " )
n o r m a l i z e ( )
r e m o v e C h i l d ( )
r e p l a c e C h i l d ( o f f s e t , c o u n t , " t e x t " )
s p l i t T e x t ( o f f s e t )
s u b s t r i n g D a t a ( o f f s e t , c o u n t )
T e x t
( 1 )
( 1 ) N o t i m p l e m e n t e d i n I E t h r o u g h 5 . 5 .
c o l l a p s e d
c o m m o n A n c e s t o r C o n t a i n e r
e n d C o n t a i n e r
e n d O f f s e t
s t a r t C o n t a i n e r
s t a r t O f f e t
c l o n e C o n t e n t s ( )
( 2 )
c l o n e R a n g e ( )
c o l l a p s e ( [ s t a r t ] )
c o m p a r e B o u n d a r y P o i n t s ( t y p e , s r c )
( 3 )
c r e a t e C o n t e x t u a l F r a g m e n t ( " t e x t " )
d e l e t e C o n t e n t s ( )
d e t a c h ( )
e x t r a c t C o n t e n t s ( )
( 2 )
i n s e r t N o d e ( n o d e )
( 2 )
i s V a l i d F r a g m e n t ( " t x t " )
s e l e c t N o d e ( n o d e )
s e l e c t N o d e C o n t e n t s ( n o d e )
s e t E n d ( n o d e , o f f s e t )
s e t E n d A f t e r ( n o d e )
s e t E n d B e f o r e ( n o d e )
s e t S t a r t ( n o d e , o f f s e t )
s e t S t a r t A f t e r ( n o d e )
s e t S t a r t B e f o r e ( n o d e )
s u r r o u n d C o n t e n t s ( n o d e )
( 2 )
t o S t r i n g ( )
R a n g e
( 1 )
( 1 ) N o t i m p l e m e n t e d i n I E t h r o u g h 5 . 5 .
( 2 ) N o t i m p l e m e n t e d i n N N 6 . 0
( 3 ) B r o k e n i n N N 6 . 0
a l i g n
c h
( 1 )
c h O f f
( 1 )
s p a n
v A l i g n
w i d t h
C O L , C O L G R O U P
( 1 ) N o t i m p l e m e n t e d i n I E t h r o u g h 5 . 5 .
a l i g n
b g C o l o r
c e l l s [ ]
c h
( 1 )
c h O f f
( 1 )
r o w I n d e x
v A l i g n
( N o n e )d e l e t e C e l l ( i )
i n s e r t C e l l ( i )
T R
( 1 ) N o t i m p l e m e n t e d i n I E t h r o u g h 5 . 5 .
a b b r
( 1 )
a l i g n
a x i s
( 1 )
b a c k g r o u n d
b g C o l o r
c e l l I n d e x
c h
( 1 )
c h O f f
( 1 )
c o l S p a n
h e a d e r s
( 1 )
h e i g h t
n o W r a p
r o w S p a n
v A l i g n
w i d t h
T D , T H
( 1 ) N o t i m p l e m e n t e d i n I E t h r o u g h 5 . 5 .
1 2
W 3 C D O M ( I E 5 + , N N 6 + ) Q u i c k R e f e r e n c e P a g e 3 o f 4
2 0 0 1 D a n n y G o o d m a n ( w w w . d a n n y g . c o m ) . A l l R i g h t s R e s e r v e d .
J S B 4
2 7
2 7
2 7
1 9
1 9
1 9
1 9
1 9
2 7 2 7
2 7
N o d e T y p e s
E L E M E N T _ N O D E
A T T R I B U T E _ N O D E
T E X T _ N O D E
C D A T A _ S E C T I O N _ N O D E
E N T I T Y _ R E F E R E N C E _ N O D E
E N T I T Y _ N O D E
P R O C E S S I N G _ I N S T R U C T I O N _ N O D E
C O M M E N T _ N O D E
D O C U M E N T _ N O D E
D O C U M E N T _ T Y P E _ N O D E
D O C U M E N T _ F R A G M E N T _ N O D E
N O T A T I O N _ N O D E
1
2
3
4
5
6
7
8
9
1 0
1 1
1 2
1 9
1 9
1 9
( N o n e )
(1)Not implemented in IE through 5.5.
charset
(1)
disabled
href
hreflang
media
rel
rev
target
type
(None) (None)
LINK
defer
event
htmlFor
language
src
text
type
(None) (None)
SCRIPT
altKey
bubbles
button
cancelBubble
cancelable
charCode
clientX
clientY
ctrlKey
currentTarget
detail
eventPhase
isChar
keyCode
layerX
layerY
metaKey
pageX
pageY
relatedTarget
screenX
screenY
shiftKey
target
timeStamp
type
view
(None) initEvent(" type",bubble,cancelable )
initKeyEvent(" type", evtArgs )
initMouseEvent(" type", evtArgs )
initUIEvent(" type", evtArgs )
preventDefault()
stopPropagation()
event
(1)
(1)Not implemented in IE through 5.5.
media
type
(None) (None)
STYLE
cssRules[]
disabled
href
media
ownerNode
(1)
ownerRule
(1)
parentStyleSheet
title
type
(None) deleteRule( index )
(1)
insertRule("rule",index )
(1)
styleSheet
(1)Not implemented in IE through 5.5.
align
alt
(1)
archive
(1)
code
codeBase
height
hspace
name
object
(1)
vspace
width
APPLET
(1)Not implemented in IE through 5.5.
align
height
name
src
width
onLoad
onScroll
(None)
EMBED
align
alt
(1)
code
codeBase
codeType
contentDocument
height
hspace
name
object
type
vspace
width
OBJECT
(1)Not implemented in IE through 5.5.
cssText
(2)
parentStyleSheet
(2)
selectorText
style
type
(1)
(None) (None)
cssRule
(1)Not implemented in IE through 5.5.
(2)Not implemented in IE through 5.5, but implemented in IE5/Mac.
13
Page 4 of 4 W3C DOM (IE5+, NN6+) DOM Quick Reference
2001Danny Goodman(www.dannyg.com). All RightsReserved.
JSB4
W3C DOM
Compatibility Guide
Basel i ne browsers for thi s secti on are
I E5 and NN6. An i tem wi th no notati on
i s compati bl e wi th these browsers for
al l OS versi ons. Observe footnotes for
i tems mi ssi ng from I E.
Al l HTML el ement objects share
i tems from Al l HTML box on Page 1.
(None) means no speci al methods or
events for the current object.
30
30
30
20
20
32
32 32
29
w i n d o w
f r a m e s e l f t o p p a r e n t
h i s t o r ys c r e e nn a v i g a t o r d o c u m e n t l o c a t i o n e v e n t
a p p l e t ss t y l e S h e e t sl i n k
a n c h o r
s e l e c t i o n
i m a g e s e m b e d sp l u g i n s a l l
[ e l e m e n t s ]
s t y l e
f o r m
t e x t
t e x t a r e a
p a s s w o r d
r a d i o
c h e c k b o x
b u t t o n
r e s e t
s u b m i t
s e l e c t
o p t i o n

Vous aimerez peut-être aussi