Macromedia dreamweaver 8-extending dreamweaver 사용자 설명서
The Dreamweaver DOM
129
Objects, properties, and methods of the
Dreamweaver DOM
Dreamweaver DOM
The following table lists the objects, properties, methods, and events that the Dreamweaver
DOM supports. Some properties are read-only when they are accessed as properties of a
specific object. A bullet (•) indicates properties that are read-only when they are used in the
listed context.
DOM supports. Some properties are read-only when they are accessed as properties of a
specific object. A bullet (•) indicates properties that are read-only when they are used in the
listed context.
Object
Properties
Methods
Events
window
navigator •
document •
innerWidth •
innerHeight •
screenX •
screenY •
document •
innerWidth •
innerHeight •
screenX •
screenY •
alert()
confirm()
escape()
unescape()
close()
setTimeout()
clearTimeout()
setInterval()
clearInterval()
resizeTo()
confirm()
escape()
unescape()
close()
setTimeout()
clearTimeout()
setInterval()
clearInterval()
resizeTo()
onResize
navigator
platform •
None
None
document
forms •
(an array of form
objects)
images •
(an array of image
objects)
layers •
(an array of
LAYER,
ILAYER,
and absolutely
positioned
DIV
and
SPAN
objects
)
child
objects by name
•
nodeType •
parentNode •
childNodes •
documentElement •
body •
URL •
parentWindow •
parentNode •
childNodes •
documentElement •
body •
URL •
parentWindow •
getElementsBy TagName()
hasChildNodes()
hasChildNodes()
onLoad
all tags/
elements
nodeType •
parentNode •
childNodes •
tagName •
attributes by name
innerHTML
outerHTML
parentNode •
childNodes •
tagName •
attributes by name
innerHTML
outerHTML
getAttribute()
setAttribute()
removeAttribute()
getElementsByTagName()
hasChildNodes()
setAttribute()
removeAttribute()
getElementsByTagName()
hasChildNodes()