|
JavaScript Programmer's Reference - Document Object
irt.org | XRef | HTML | Document
Document Object
Document Methods
| Name | MSIE | NNav | Notes |
| attachEvent() | 5 | - | |
| clear() | 3.02 | 2 | This method is deprecated as of JavaScript version 1.2 |
| close() | 3.02 | 2 | |
| contextual() | - | 4 | |
| createAttribute() | - | 6 | |
| createCDATASection() | - | 6 | |
| createComment() | - | 6 | |
| createDocumentFragment() | - | 6 | |
| createElement() | 4 | 6 | |
| createEntityReference() | - | 6 | |
| createProcessingInstruction() | - | 6 | |
| createStyleSheet() | 4 | - | Inconsistent in some versions of MSIE. |
| createTextNode() | 5 | 6 | |
| detachEvent() | 5 | - | |
| elementFromPoint() | 4 | - | |
| execCommand() | 4 | - | This is only supported by the 32 bit Windows version of MSIE. |
| getElementById() | 5 | 6 | |
| getElementsByName() | 5 | 6 | This always yeilds an empty collection on MSIE 5 for Macintosh. |
| getElementsByTagName() | 5 | 6 | |
| getSelection() | - | 4 | On MSIE, use the selection property of the document object. |
| open() | 3.02 | 2 | |
| queryCommandEnabled() | 4 | - | This is only supported by the 32 bit Windows version of MSIE. |
| queryCommandIndeterm() | 4 | - | This is only supported by the 32 bit Windows version of MSIE. |
| queryCommandState() | 4 | - | This is only supported by the 32 bit Windows version of MSIE. |
| queryCommandSupported() | 4 | - | This is only supported by the 32 bit Windows version of MSIE. |
| queryCommandText() | 4 | - | This is only supported by the 32 bit Windows version of MSIE. |
| queryCommandValue() | 4 | - | This is only supported by the 32 bit Windows version of MSIE. |
| recalc() | 5 | - | |
| write() | 3.02 | 2 | |
| writeln() | 3.02 | 2 | |
Document Functions
| Name | MSIE | NNav | Notes |
| captureEvents() | - | 4 | |
| handleEvent() | - | 4 | |
| releaseEvents() | - | 4 | |
| routeEvent() | - | 4 | |
Document Properties
| Name | MSIE | NNav | Notes |
| <form_name> | 4 | 3 | |
| activeElement | 4 | - | |
| alinkColor | 3.02 | 2 | |
| background | - | - | |
| bgColor | 3.02 | 2 | |
| body | 4 | 6 | |
| characterset | - | 6 | |
| charset | 4 | - | |
| cookie | 3.02 | 2 | MSIE version 3 will only return cookie data for documents that were requested using the http: protocol. |
| defaultCharset | 4 | - | |
| designMode | 5 | - | |
| doctype | 4 | 6 | There is apparently no access to this value in Netscape Navigator and MSIE only provides limited access. |
| documentElement | 5 | 6 | Traversing this object with a for( ... in ... ) loop in MSIE 5 may lead to a browser crash. |
| domain | 4 | 3 | |
| expando | 4 | - | |
| fgColor | 3.02 | 2 | |
| fileCreatedDate | 4 | - | |
| fileModifiedDate | 4 | - | |
| fileSize | 4 | - | |
| height | - | 4 | |
| implementation | 5 | 6 | This may not be implemented in all version of the MSIE browser. |
| lastModified | 3.02 | 2 | |
| linkColor | 3.02 | 2 | |
| location | 3.02 | 2 | |
| parentWindow | 4 | - | |
| protocol | 3.02 | - | |
| readyState | 4 | - | |
| referrer | 3.02 | 2 | This does not work in MSIE version 3 |
| selection | 4 | - | |
| title | 3.02 | 2 | |
| uniqueID | 5 | - | |
| URL | 4 | 3 | |
| vlinkColor | 3.02 | 2 | |
| width | - | 4 | |
Document Collectons
| Name | MSIE | NNav | Notes |
| all[] | 4 | - | This function may not be available in a properly constructed level 1 DOM implementation. |
| anchors[] | 4 | 4 | Some problems when adding new links with JS. |
| applets[] | 3.02 | 3 | Some problems when adding new links with JS. |
| classes[] | - | 4 | This functionality is removed from Netscape Navigator 6.0. |
| embeds[] | 4 | 3 | |
| forms[] | 4 | 2 | |
| frames[] | 4 | - | |
| ids[] | - | 4 | Part of JSS and therefore deprecated. |
| images[] | 4 | 3 | Some issues when adding new images with JS. |
| layers[] | - | 4 | Netscape Navigator version 6.0 completely removes layer support. |
| links[] | 3.02 | 2 | |
| plugins[] | 4 | 3 | Differences between versions of MSIE. |
| scripts[] | 4 | - | Differences between versions of MSIE. |
| styleSheets[] | 4 | 6 | The entire style management complex is different between the two browsers. |
| tags[] | - | 4 | Part of JSS and therefore deprecated. |
irt.org | XRef | HTML | Document
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.