Web host forum - JavaScript Programmer’s Reference anIndex A reference to an

JavaScript Programmer’s Reference anIndex A reference to an element in a collection aName An associative array reference Argument list: anElementID The ID value of an Element object Object properties: charset, content, httpEquiv, name, scheme, url Event handlers: onClick, onDblClick, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp These tags and their corresponding object instantiations are used to convey hidden information about the document. This information might be useful to a search engine for example. Sometimes the server uses the METAinformation to control the way the pages are cached into a proxy. Likewise, a client browser may use these values to control the local caching and expiry times of a document. There may be several META objects associated with a document. There is no collection object that provides an enumerable set containing only the METAobjects but you can traverse the document.all[] collection and extract them in MSIE or use the collection returned by the DOM compliant document.getElementsByTagName(”META”) method which is supported on Netscape 6.0 and recent versions of MSIE. It is possible you might know the unique ID=”…” HTML tag attribute value in which case you can access the required object directly. This is not currently supported at all in Netscape 4.0 although, because it is part of the DOM specification, it is added to Netscape 6.0. Warnings: . Netscape 6.0 returns an undefined value for the charset property and incorrectly appends it to the content property. . For this meta tag: . . Netscape Navigator 6.0 returns these values: . myMeta.httpEquivis defined as “Content-Type” . myMeta.content is defined as “text/html; charset=8859-1″ . myMeta.charset is undefined See also: , Element object, META.charset Property JavaScript JScript N IE Opera DOM HTML Notes charset 3.0 + 4.0 + - content 1.5 + 3.0 + 6.0 + 4.0 + 1 + - httpEquiv 1.5 + 3.0 + 6.0 + 4.0 + 1 + - name 1.5 + 3.0 + 6.0 + 4.0 + 1 + - scheme 1.5 + 5.0 + 6.0 + 5.0 + 1 + - url 3.0 + 4.0 + - 1432

Leave a Reply