Document Object Model

NN4 DOM

¿ÞÂÊ ±×¸²Àº
Netscape Navigator version 4 DOM(Document Object Model)ÀÇ °èÃþµµÀÔ´Ï´Ù. Javascript 1.2¿¡¼­ Ãß°¡µÈ Object´Â layerÀÔ´Ï´Ù.

layer´Â ¾Æ·¡ÀÇ ¹æ½ÄÀ¸·Î »ç¿ëÇÕ´Ï´Ù.

document.layerName.property(or, method)


<ºê¶ó¿ìÀú¿Í ½ºÅ©¸³Æ® ¹öÁ¯°úÀÇ °ü°è>
BrowserJavascript Version
Netscape Navigator 2.0x1.0
MS Internet Explorer 3.0x  1.0
Netscape Navigator 3.0x1.1
Netscape Navigator 4.0x1.2
MS Internet Explorer 4.0x1.2







Object Property     ºó ¹ÙÅÁÀº ObjectÀÇ ±¸¼º¿ä¼Ò(Property)  
Object Methodȸ»ö ¹ÙÅÁÀº Object ¸Þ¼Òµå
Object EventÁøÇÑȸ»öÀº Object À̺¥Æ®
N3NN3¿¡¼­ NN4±îÁö Áö¿øµÊ(IE4´Â È®½ÇÄ¡ ¾ÊÀ½)
N4Netscape Navigator(NN4)¿¡¼­ Áö¿øµÊ
M4MS Internet explorer(IE4)¿¡¼­ Áö¿øµÊ
J2MSIE 3, JScript.dll Version 2¿¡¼­ Áö¿øµÊ
(S)NN4ÀÇ signed-script Áö¿øÀÌ ÇÊ¿äÇÔ


Anchor
name N4,M4  text N4  x N4  y N4  


Area
hashhosthostname
hrefpathnameport
protocolsearchtarget
onClick= N4     onMouseOut= onMouseOver=
  *area N3,M4

Applet N3,M3   Java Property. Java methods. No events




Button, Reset, Submit
nametype N3,M4value
click()handleEvent(evt)N4
onClick=    onMouseDown= N4,M4onMouseUp= N4,M4


Checkbox
checkeddefaultCheckedname
type N3,M4    value
click()handleEvent(evt) N4
onClick=onMouseDown= N4,M4onMouseUp= N4,M4


Document
alinkColoranchors[i]applets[i]N3,M4
bgColorcookiedomain N3,M4
embeds[i]N3,M4fgColorforms[i]
images[i]N3,M4lastModifiedlayers[i]N4
linkColorlinks[i]location (1)
referrertitleURL N3,M4
vlinkColor
captureEvents(type)N4clear()close()
getSelection()N4,(2)handleEvent(event)N4open("mimetype" [,replace]) (3)
releaseEvents(type)N4routeEvent(event)N4write("string")
writeln("string")
*(1)NN3¿¡¼­ URL property·Î ´ëÄ¡µÈ´Ù.
*(2)M4(IE4)¿¡¼­ ¼±ÅÃµÈ text¸¦ ´Ù·ê ¼ö ÀÖ´Â document.selection property°¡ ÀÖ´Ù.
*(3)M4¿¡¼­ "text/html" »Ó¸¸¾Æ´Ï¶ó mimetype parameterµµ Áö¿øµÈ´Ù.


fileUpload
namevalue
blur()focus()handleEvent(evt) N4
select()
onBlur=    onFocus=    onSelect=
 *(1)IE4´Â Netscape's "fileUpload"¸¦ »ç¿ëÇÏÁö ¾Ê°í, <INPUT type="file"> tag°°Àº°ÍÀ» ÂüÁ¶ÇÑ´Ù.   *fileUpload N3,M4,(1)

Form
actionelements[i]encoding
lengthmethodname
target
handleEvent(evt)N4reset()N3,M4submit()
onReset= N3,M4onSubmit=


History
length     current (S),(1)
previous (S),(1)     next (S),(1)
go(int | "URL")back()forward()

 *(1)º¸¾ÈÀ¸·Î NN3¿¡¼­´Â »ç¿ëÇÒ¼ö ¾ø°í signed scripts·Î NN4¿¡¼­ »ç¿ë °¡´ÉÇÔ.


Image
bordercompleteheight
hspacelowsrcname
srcvspacewidth
x N4y N4
onAbort=    onError=    onLoad=    
  *(1)MSIE 3 for Mac¿¡¼­´Â Áö¿øÀÌ µÈ´Ù. IE3 for win¿¡¼­´Â Áö¿øÀÌ ¾ÈµÊ.   *image N3,(1),M4

Layer
abovebackgroundbelow
bgColorclip.topclip.left
clip.rightclip.bottomclip.width
clip.heightdocumentleft
namepageXpageY
parentLayersiblingAbovesiblingBelow
srctopvisibility
zIndex
load("filename",y)moveAbove(layerObj)moveBelow(layerObj)
moveBy( x, y)moveTo(x, y)moveToAbsolute(x, y)
resizeBy( x, y)resizeTo(width, height)
onBlur=onFocus=onLoad=
onMouseOut=onMouseOver=onMouseUp=

  *Layer´Â NN4(Netscape Comunicator)¿¡¼­¸¸ Áö¿øÇϰí, IE4´Â Áö¿øÇÏÁö ¾Ê½À´Ï´Ù.


Link
hashhosthostname
hrefpathnameport
protocolsearchtarget
text N4x N4y N4
onClick=onDblClick=N4,(1),M4onMouseDown=N4,M4
onMouseOut=N3,M4onMouseOver=onMouseUp=N4,M4
   *(1)Macintosh Navigator 4¿¡¼­ Áö¿øµÇÁö ¾Ê´Â°Íµé : text, textarea, password, hidden defaultValue

Location
hashhosthostname
hrefpathnameport
protocolsearch
assign("URL")reload([unconditional])N3,M4replace("URL")N3,M4


Radio
checkeddefaultCheckedlength
nametype N3,M4value
click()handleEvent(evt) N4
onClick=    onMouseDown= N4,M4onMouseUp= N4,M4


Select
lengthnameoptions[i]
options[i].defaultSelectedoptions[i].indexoptions[i].selected
options[i].textoptions[i].valueselectedIndex
type N3,M4
blur() N3,M4focus() N3,M4    handleEvent(evt) N4
onBlur=onChange=onFocus=
    *i´Â Á¤¼ö°ª.

Text, TextArea, Password, Hidden
defaultValueformname
type N3,M4value (1)
blur()focus()handleEvent(event) N4
select()
onBlur=onChange=onFocus=
onKeyDown= N4,M4onKeyPress= N4,M4onKeyUp= N4,M4
onSelect=
   *(1)Password °ªÀº Navigator 2¿¡¼­´Â °ø¹é¹®ÀÚ("")¸¦ ¹ÝȯÇÑ´Ù.
Window
closed N3,M4defaultStatusdocument
frames[i]historyinnerHeight N4,(S)
innerWidth N4,(S)locationlocationbar N4,(S)
menubar N4,(S)nameonerror N3,M4
opener N3,M3outerHeight N4,(S)outerWidth N4,(S)
pageXOffset N4pageYOffset N4parent
personalbar N4,(S)scrollbars N4,(S)self
statusstatusbar N4,(S)toolbar N4,(S)
topwindow
alert("msg")back()N4
blur()N3,M4
captureEvents(type)N4clearInterval(ID)N4,M4clearTimeout(ID)
close()confirm("msg")disableExternalCapture()N4,(S)
focus()N3,M4find(["str"][,case, bkwd])N4enableExternalCapture()N4,(S)
forward()N4handleEvent(event)N4home()N4
moveBy( x, y)N4,(S)moveTo(x,y)N4,(S)open(URL,"name","specs") (1),(S)
print()N4,M4prompt("msg","reply")releaseEvents(type)N4
resizeBy( x, y)N4,(S)resizeTo(width,height)N4,(S)routeEvent(event)N4
scroll(x,y)N3,M4scrollBy( x, y)N4,M4scrollTo(x,y)N4,M4
setInterval(func, msec [,args])N4,M4,(2)setTimeout(func, msec [,args])N4,M4,(3)stop()N4
onBlur=N3,M4onDragDrop=N4,(S)onFocus=N3,M4
onLoad=onMove=N4onResize=N4,M4
onUnload=

* (1)ºê¶ó¿ìÀúÀÇ À©µµ¿ì ±¸¼ºÇ°:
height, width, toolbar, location, directories, status, menubar, scrollbars, resizable, copyhistory. NN4¿¡ Ãß°¡ µÈ°Íµé: alwaysLowered (S) , alwaysRaised (S) , dependent, hotkeys, innerHeight, innerWidth, outerHeight, outerWidth, screenX, screenY, titlebar (S) , z-lock (S) .
* (2)Optional args parameter added to N4; 3rd parameter in M4 is for scripting language.
* (3)Third parameter in N4 for args; in M4 for scripting language.




ÀÌ ÆäÀÌÁö´Â Danny GoodmanÀÇ pdfÈ­ÀÏÀ» htmlÈ­ÀÏ·Î ¹Ù²å½À´Ï´Ù.
±× ºÐ²² °¨»ç¸¦ µå¸³´Ï´Ù.
http://www.dannyg.com/javascript/jsminifaq.html


TOP            Go to Source           TOP