Web design rates - L LINK.rel (Property) This property reflects the

L LINK.rel (Property) This property reflects the downloading state of an object associated with a tag. Sometimes, you can design scripts to execute while the document is downloading; inline scripts for example. At that time, you may even be able to trigger interval-timed, deferred executions, as well. If it is important that the document has completed loading before your script attempts to execute, you can check this property for one of the following values: State Value uninitialized The object is first instantiated but has not begun loading. loading The object has commenced loading. loaded The object has completed loading. interactive The object is loaded but not yet closed but is ready to handle interaction. complete The object body has been closed and the loading is finished. An object may not need to reflect the complete status before you can commence operating on it. Other objects may require that they are completely loaded. For example, you cannot create an OBJECT object that represents an tag until the has completed loading. This is because the ActiveX object construction requires a complete document body structure to attach itself to. Every time this readyState value changes, it triggers an onReadyStateChange event call-back. See also: LINK.title, onReadyStateChange Property attributes: ReadOnly. LINK.rel (Property) The relationship between the current element and the remote document. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Property/method value type: String primitive JavaScript syntax: -myLINK.rel HTML syntax: This is sometimes called a forward link. Although the HREF=”…” HTML tag attribute is normally the only means used to identify a target document, the browser is permitted to use the REL=”…” HTML tag attribute to decide whether to use the HREF value or how it should be used. 1343

Leave a Reply