1. Trang chủ
  2. » Công Nghệ Thông Tin

JavaScript Bible, Gold Edition part 160 pptx

10 154 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 10
Dung lượng 435,52 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

1438 Part VI ✦ Appendixes 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 JSB4 Original DOM Compatibility Guide Baseline browsers for this section are NN2, IE3/J1, and IE 3.01/Mac. An item with no notation is compatible back to that level. Notations indicate the browser and version in which the property, method, or event handler was introduced. An item showing to be introduced only in IE, for example, does not exist for any NN version. Except for the window and navigator objects (whose listings cover all browsers and versions), new features listed in this section cover only through NN4 (and IE4 when they matched a new NN4 feature). Notations are as follows: N3 — New in NN3 N4 — New in NN4 J2 — New in IE3, JScript.dll ver.2 IE4 — New in IE4, all OSes (S) — Requires signed scripts (NN) Additional window and navigator object notations are: W4 — IE4+/Windows only W5 — IE5+/Windows only IE5 — IE5+ all OSes IE5.5 — IE5.5+ (only Win tested) M4 — IE4+/Mac only M5 — IE5+/Mac only N6 — New in NN6 Except for items marked N4-Only (which are not carried over into NN6), an item listed for an early browser is also available in the IE4+ and/or W3C DOM object models. “(None)” means that no methods or events exist for the current object through IE3 and NN4. 1439 Appendix A ✦ JavaScript and Browser Object Quick Reference accessKey all[] behaviorUrns[] W5 canHaveChildren W5 canHaveHTML IE5.5 children className clientHeight clientLeft clientTop clientWidth contentEditable IE5.5 currentStyle IE5 dataFld W4 dataFormatAs W4 dataSrc W4 disabled document filters[] W4 hideFocus IE5.5 id innerHTML innerText isContentEditable IE5.5 isDisabled IE5.5 isMultiLine IE5.5 isTextEdit W4 lang language length (1) offsetHeight offsetLeft offsetParent offsetTop offsetWidth outerHTML outerText parentElement W4 parentTextEdit readyState recordNumber W4 runtimeStyle W5 scopeName W5 scrollHeight scrollLeft scrollTop scrollWidth sourceIndex style tabIndex tagName tagUrn W5 title uniqueID W5 onActivate IE5.5 onBeforeCopy W5 onBeforeCut W5 onBeforeDeactivate IE5.5 onBeforeEditFocus W5 onBeforePaste W5 onBlur onClick onContextMenu W5 onControlSelect IE5.5 onCopy W5 onCut W5 onDblClick onDeactivate IE5.5 onDrag W5 onDragEnd W5 onDragEnter W5 onDragLeave W5 onDragOver W5 onDragStart W5 onDrop W5 onFilterChange W4 onFocus onHelp W4,M5 onKeyDown onKeyPress onKeyUp onLoseCapture W5 onMouseDown onMouseEnter IE5.5 onMouseLeave IE5.5 onMouseMove onMouseOut onMouseOver onMouseUp onPaste W5 onPropertyChange W5 onReadyStateChange onResize onResizeEnd IE5.5 onResizeStart IE5.5 onSelectStart addBehavior(" URL ") W5 applyElement( elem [, type ]) W5 attachEvent(" evt ", func ) W5 blur() clearAttributes() W5 click() componentFromPoint( x , y ) W5 contains( elem ) detachEvent(" evt ", func ) W5 fireEvent(" evt "[, evt ]) IE5.5 focus() getAdjacentText() W5 getAttribute(" attr "[, case ]) getBoundingClientRect() W5 getClientRects() W5 getExpression() W5 insertAdjacentElement() W5 insertAdjacentHTML() insertAdjacentText() item( index [, subindex ]) (1) mergeAttributes() W5 releaseCapture() W5 removeAttribute(" attr "[, case ]) removeBehavior( ID ) W5 removeExpression(" prop ") W5 removeNode( children ) W5 replaceAdjacentText(" loc "," txt ") W5 replaceNode( new ) W5 scrollIntoView( top ) setActive() IE5.5 setAttribute(" attr ", val [, case ]) setCapture( container ) W5 setExpression(" prop "," expr "," lang ") W5 swapNode( node ) W5 tags( "tag ") (1) urns(" URN ") W5,(1) All HTML Elements (1)Property or method of all object collections. document isOpen (None) hide() show() popup W5.5 activeElement alinkColor all anchors[] applets[] bgColor body charset cookie defaultCharset designMode W5 doctype domain embeds[] expando fgColor fileCreatedDate fileModifiedDate fileSize forms[] frames[] images[] lastModified linkColor links[] location media IE5.5 mimeType W5 namespaces[] IE5.5 parentWindow plugins[] protocol readyState referrer scripts[] security IE5.5 selection styleSheets[] title uniqueID URL URLUnencoded IE5.5 vlinkColor onActivate IE5.5 onBeforeCut W5 onBeforeDeactivate IE5.5 onBeforeEditFocus W5 onBeforePaste W5 onClick onContextMenu W5 onControlSelect IE5.5 onCut onDblClick onDeactivate IE5.5 onDrag W5 onDragEnd W5 onDragEnter W5 onDragLeave W5 onDragOver W5 onDragStart W5 onDrop W5 onHelp W4,M5 onKeyDown onKeyPress onKeyUp onMouseDown onMouseMove onMouseOut onMouseOver onMouseUp onPaste onPropertyChange W5 onReadyStateChange onResizeEnd IE5.5 onResizeStart IE5.5 onSelectionChange onStop IE5 attachEvent(" evt ", func ) IE5 clear() clearAttributes() IE5 close() createElement(" tag ") createEventObject([ evt ]) IE5.5 createStyleSheet([" URL "[, index ]]) detachEvent(" evt ", func ) IE5 elementFromPoint( x , y ) execCommand(" cmd "[, UI ][, arg ]) focus() mergeAttributes( obj ) W5 open([" mimeType "[, replace ]) queryCommandEnabled(" cmd ") queryCommandIndterm(" cmd ") queryCommandState(" cmd ") queryCommandSupported(" cmd ") queryCommandText(" cmd ") queryCommandValue(" cmd ") recalc( allFlag ) W5 releaseCapture() IE5 setActive() IE5.5 write(" str ") writeln(" str ") document alink background bgColor bgProperties bottomMargin leftMargin link noWrap rightMargin scroll scrollLeft scrollTop text topMargin vLink onAfterPrint W5 onBeforePrint W5 onScroll createControlRange() W5 createTextRange() doScroll([" scrollAction "]) W5 BODY borderColor Document frameBorder height marginHeight marginWidth noResize scrolling src width FRAME align Document frameBorder frameSpacing hspace marginHeight marginWidth scrolling src vspace IFRAME color face size BASEFONT text TITLE href target BASE JSB4 border borderColor cols frameBorder frameSpacing rows FRAMESET charset content httpEquiv name url META 1440 Part VI ✦ Appendixes 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 JSB4 IE4+ DHTML DOM Compatibility Guide The baseline browser for this section is MSIE 4. An item with no notation is compatible back to that level for all OS versions. Notations as follows: W4 — IE4+/Windows only W5 — IE5+/Windows only IE5 — IE5+ all OSes IE5.5 — IE5.5+ (only Win tested) M5 — IE5+/Mac All HTML element objects share items from “All HTML” box on Page 1. “(None)” means no special methods or events for the current object. defaultSelected form selected text value (None) OPTION (None) 1441 Appendix A ✦ JavaScript and Browser Object Quick Reference align bgColor rows vAlign (None) deleteRow( i ) insertRow( i ) moveRow( srcIndex , destIndex ) i TBODY, TFOOT, THEAD align background bgColor border borderColor borderColorDark borderColorLight caption cellPadding cellSpacing cells[] cols[] datePageSize frame height rows[] rules tBodies[] tFoot tHead width onScrollcreateCaption() createTFoot() createTHead() deleteCaption() deleteRow(i) deleteTFoot() deleteTHead() firstPage() W5 insertRow( i ) lastPage() W5 moveRow( srcIndex , destIndex ) W5 nextPage() W4 previousPage() W4 refresh() TABLE align vAlign CAPTION align span vAlign width COL, COLGROUP align background bgColor borderColor borderColorDark borderColorLight cellIndex colSpan height noWrap rowSpan vAlign width TD, TH align bgColor borderColor borderColorDark borderColorLight cells[] height rowIndex sectionRowIndex vAlign (None) deleteCell( i ) insertCell( i ) TR color face size FONT align color noShade size width HR align H1 H6 BR clear boundingHeight boundingLeft boundingTop boundingWidth htmlText offsetLeft offsetTop text (None) collapse([ start ]) compareEndPoints(" type ", range ) duplicate() execCommand(" cmd "[, UI [, val ]]) expand(" unit ") findText(" str "[, scope , flags ]) getBookmark() getBoundingClientRect() getClientRects() inRange( range ) isEqual( range ) move(" unit "[, count ]) moveEnd(" unit "[, count ]) moveStart(" unit "[, count ]) moveToBookmark(" bookmark ") moveToElementText( elem ) moveToPoint( x , y ) parentElement() pasteHTML(" HTMLText ") queryCommandEnabled(" cmd ") queryCommandIndeterm(" cmd ") queryCommandState(" cmd ") queryCommandSupported(" cmd ") queryCommandText(" cmd ") queryCommandValue(" cmd ") scrollIntoView() select() setEndPoint(" type ", range ) TextRange W4 type (None) clear() createRange() empty() selection M4 data length nextSibling nodeName nodeType nodeValue parentNode previousSibling (None) splitText( offset ) TextNode IE5 bottom left right top (None) (None) TextRectangle IE5 IE4+ DHTML DOM Quick Reference Page 3 of 4 ' 2001 Danny Goodman (www.dannyg.com). All Rights Reserved. JSB4 IE4+ DHTML DOM Compatibility Guid e The baseline browser for this section is MSIE 4. An item with no notation is compatible back to that level for all OS versions. Notations as follows: W4 — IE4+/Windows only W5 — IE5+/Windows only IE5 — IE5+ all OSes IE5.5 — IE5.5+ (only Win tested) M5 — IE5+/Mac All HTML element objects share items from “All HTML” box on Page 1. “(None)” means no special methods or events for the current object. This Quick Reference does not contain listings for Microsoft’s separate XML DOM. 27 27 19 19 19 19 27 2727 27 19 19 19 19 1442 Part VI ✦ Appendixes 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 JSB4 W5 1443 Appendix A ✦ JavaScript and Browser Object Quick Reference attributes[] childNodes[] className dir firstChild id innerHTML (1) lang lastChild length (3) localName namespaceURI nextSibling nodeName nodeType nodeValue offsetHeight (1) offsetLeft (1) offsetParent (1) offsetTop (1) offsetWidth (1) ownerDocument parentNode prefix previousSibling style tabIndex tagName title onBlur onClick onDblClick onFocus onKeyDown onKeyPress onKeyUp onMouseDown onMouseMove onMouseOut onMouseOver onMouseUp onResize addEventListener(" evt ", func , capt ) (2) appendChild( elem ) blur() click() cloneNode( deep ) dispatchEvent( evt ) (2) focus() getAttribute(" attr ") getAttributeNode(" attr ") (2) getElementsByTagName(" tag ") hasChildNodes() insertBefore( new [, ref ]) item( index ) (3) normalize() (2) removeAttribute(" attr ") removeAttributeNode( node ) (2) removeChild( node ) removeEventListener(" evt ", func , capt ) (2) replaceChild( new , old ) setAttribute(" attr ", val ) setAttributeNode( node ) (2) supports(" feature ") (2) All HTML Elements (1)Originating from the IE4 Object Model, this non-W3C item is implemented in N6 for convenience. (2)Not implemented in IE through 5.5. (3)Property or method of all object collections. alinkColor anchors[] applets[] attributes[] bgColor body characterSet (1) childNodes[] cookie doctype (1) documentElement domain embeds[] fgColor firstChild forms[] height (1) images[] implementation (1) lastChild lastModified linkColor links[] location namespaceURI nextSibling nodeName nodeType ownerDocument (1) parentNode plugins previousSibling referrer styleSheets[] title URL vlinkColor width (1) onBlur onClick onDblClick onFocus onKeyDown onKeyPress onKeyUp onMouseDown onMouseMove onMouseOut onMouseOver onMouseUp onResize clear() close() createAttribute(" name ") createDocumentFragment() createElement(" tag ") createTextNode(" txt ") focus() getElementById(" ID ") getElementsByName(" name ") getElementsByTagName(" tag ") open(" mimeType "[, replace ]) write(" str ") writeln(" str ") document (1)Not implemented in IE through 5.5. (1)Not implemented in IE through 5.5. contentDocument (1) frameBorder longDesc (1) marginHeight marginWidth noResize scrolling src (None)(None) FRAME cols rows (None)(None) FRAMESET (1)Not implemented in IE through 5.5. align contentDocument (1) frameBorder longDesc (1) marginHeight marginWidth scrolling src IFRAME alink background bgColor link text vLink (None)(None) BODY (1)Not implemented in IE through 5.5. version (1) (None)(None) HTML (1)Not implemented in IE through 5.5. profile (1) HEAD href target BASE color face size BASEFONT charset content httpEquiv name url META text TITLE JSB4 W3C DOM Compatibility Guide Baseline browsers for this section are IE5 and NN6. An item with no notation is compatible with these browsers for all OS versions. Observe footnotes for items missing from IE. All HTML element objects share items from “All HTML” box on Page 1. “(None)” means no special methods or events for the current object. 1444 Part VI ✦ Appendixes 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. 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. alt coords hash host hostname href noHref pathname port protocol search shape target AREA areas name MAP compact start type OL compact type UL type value LI compact DL, DT, DD, DIR, MENU Page 2 of 4 W3C DOM (IE5+, NN6+) DOM Quick Reference ' 2001 Danny Goodman (www.dannyg.com). All Rights Reserved. JSB4 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 21 22 22 BUTTON INPUT (button, reset, submit, radio, checkbox) 24 disabled (See original object model button, reset, submit, radio, and checkbox object listings.) 1445 Appendix A ✦ JavaScript and Browser Object Quick Reference clear BR align H1 H6 (1)Not implemented in IE through 5.5. cite (1) BLOCKQUOTE, Q color face size FONT align color noShade size width HR (None) align bgColor border caption cellPadding cellSpacing frame height rows[] rules summary (1) tBodies tFoot tHead width onScrollcreateCaption() createTFoot() createTHead() deleteCaption() deleteRow( i ) deleteTFoot() deleteTHead() insertRow( i ) TABLE (1)Not implemented in IE through 5.5. align vAlign CAPTION deleteRow( i ) insertRow( i ) align bgColor ch (1) chOff (1) rows vAlign (None) TBODY, TFOOT, THEAD (1)Not implemented in IE through 5.5. anchorNode anchorOffset focusNode focusOffset isCollapsed rangeCount (None) addRange( range ) clearSelection() collapse( node , offset ) containsNode( node , recurse ) deleteFromDocument() extend( node , offset ) getRangeAt() removeRange( range ) selection (1),(2) (1)NN6.0 does not provide a way to create a selection object (2)Not implemented in IE through 5.5. data length (None) appendChild( node ) appendData(" text ") cloneNode( deep ) deleteData( offset , count ) hasChildNodes() insertBefore( new , ref ) insertData( offset ," text ") normalize() removeChild() replaceChild( offset , count ," text ") splitText( offset ) substringData( offset , count ) Text (1) (1)Not implemented in IE through 5.5. collapsed commonAncestorContainer endContainer endOffset startContainer startOffet cloneContents() (2) cloneRange() collapse([ start ]) compareBoundaryPoints( type , src ) (3) createContextualFragment(" text ") deleteContents() detach() extractContents() (2) insertNode( node ) (2) isValidFragment(" txt ") selectNode( node ) selectNodeContents( node ) setEnd( node , offset ) setEndAfter( node ) setEndBefore( node ) setStart( node , offset ) setStartAfter( node ) setStartBefore( node ) surroundContents( node ) (2) toString() Range (1) (1)Not implemented in IE through 5.5 (2)Not implemented in NN6.0 (3)Broken in NN6.0 align ch (1) chOff (1) span vAlign width COL, COLGROUP (1)Not implemented in IE through 5.5 align bgColor cells[] ch (1) chOff (1) rowIndex vAlign (None) deleteCell( i ) insertCell( i ) TR (1)Not implemented in IE through 5.5. abbr (1) align axis (1) background bgColor cellIndex ch (1) chOff (1) colSpan headers (1) height noWrap rowSpan vAlign width TD, TH (1)Not implemented in IE through 5.5. W3C DOM (IE5+, NN6+) Quick Reference Page 3 of 4 ' 2001 Danny Goodman (www.dannyg.com). All Rights Reserved. JSB4 27 27 27 19 19 19 19 19 27 27 27 Node Types ELEMENT_NODE ATTRIBUTE_NODE TEXT_NODE CDATA_SECTION_NODE ENTITY_REFERENCE_NODE ENTITY_NODE PROCESSING_INSTRUCTION_NODE COMMENT_NODE DOCUMENT_NODE DOCUMENT_TYPE_NODE DOCUMENT_FRAGMENT_NODE NOTATION_NODE 1 2 3 4 5 6 7 8 9 10 11 12 19 19 19 (None) 1446 Part VI ✦ Appendixes (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. JSB4 W3C DOM Compatibility Guide Baseline browsers for this section are IE5 and NN6. An item with no notation is compatible with these browsers for all OS versions. Observe footnotes for items missing from IE. All HTML element objects share items from “All HTML” box on Page 1. “(None)” means no special methods or events for the current object. JavaScript Reserved Words E very programming language has a built-in vocabulary of keywords that you cannot use for the names of variables and the like. Because a JavaScript function is an object that uses the function name as an identifier for the object, you can- not employ reserved words for function names either. Netscape’s list of reserved words closely echoes that of the Java language; thus, many of the keywords in the list do not — at least yet — apply to JavaScript. Remember that JavaScript keywords are case-sensitive. While you may get away with using these words in other cases, it may lead to unnecessary confusion for someone reading your scripts. abstract boolean break byte case catch char class const continue debugger default delete do double else enum export extends false final finally float for function goto if implements import in instanceof int interface long native new null package private protected public return short static super switch synchronized this throw throws transient true try typeof var void while with ✦✦✦ B B APPENDIX ✦✦✦✦ . separate XML DOM. 27 27 19 19 19 19 27 2727 27 19 19 19 19 1442 Part VI ✦ Appendixes 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. current object. JavaScript Reserved Words E very programming language has a built-in vocabulary of keywords that you cannot use for the names of variables and the like. Because a JavaScript function. language; thus, many of the keywords in the list do not — at least yet — apply to JavaScript. Remember that JavaScript keywords are case-sensitive. While you may get away with using these words

Ngày đăng: 06/07/2014, 06:20