Florida web design - JavaScript Programmer’s Reference The MIME type of the

JavaScript Programmer’s Reference The MIME type of the document associated with the LINK is accessible through the value of this property. Refer to the MIME type topic for details of the available MIME types you will likely see in this property. See also: Anchor.type, MIME types, Url.type LinkArray object (Object/browser) A collection of link object, belonging to a document. Availability: JavaScript 1.0 JScript 3.0 Internet Explorer 4.0 Netscape 2.0 JavaScript syntax: -myLinkArray = myDocument.links Object properties: length This is a collection of Urlobjects. In Netscape, you can inspect the constructor to establish the class name which is masked by the toString() method of the Url object. In MSIE, you cannot get at the constructor so we have to assume that the object is a Url object. Urlobjects are created when an or tag refers to a document. Anchors that are simply named locations within a document but which don’t have an HREF get added to the anchors array but not to the links array. Netscape prior to version 6.0 calls this a LinkArray(as opposed to a LinksArray which might be more appropriate). In MSIE it is just a Collection and in Netscape version 6.0 it has become an HTMLCollection because that is what DOM specifies it should be. Warnings: . Be careful not confuse the elements of this array with LINK objects. These are used in MSIE to support styling of Url objects on the screen. Other documentation may refer to Link objects but there is no evidence to support the existence of an object of that class. After inspection there appear to be Url objects in Netscape, LINK objects in MSIE and an object in MSIE that corresponds to the Netscape Url class but which provides no means of examining its constructor. See also: Area object, Collection object, Document.anchors[], Document.links[], HyperLink object, LINK object, Url object Property JavaScript JScript N IE Opera HTML Notes length 1.0 + 3.0 + 2.0 + 4.0 + - ReadOnly. 1346

Leave a Reply