JavaScript Programmer’s Reference Layer.name (Property) This corresponds to (Crystaltech web hosting)

JavaScript Programmer’s Reference Layer.name (Property) This corresponds to the NAME attribute of the tag. JavaScript 1.2 Netscape 4.0 Deprecated Availability: Property/method value type: String primitive JavaScript syntax: N myLayer.name HTML syntax: Argument list: aName A name for the layer object Objects are identified either by the NAME=”…” HTML tag attribute or by the ID=”…” HTML tag attribute. Netscape shows a marginal preference for the name property while MSIE seems slightly better disposed towards the ID property. W3C comes down fairly and squarely on the IDproperty as being the favorite. However in many cases, both browsers support either technique and in some cases will locate items named with either tag as if they existed in a single namespace. Warnings: . No longer supported in Netscape 6.0. Property attributes: ReadOnly. Layer.offset() (Method) A deprecated means of moving layers. JavaScript 1.2 Netscape 4.0 Deprecated myLayer.offset(anX, aY) Availability: JavaScript syntax: N anX A relative distance in the X axis Argument list: aY A relative distance in the Y axis You should now use the moveBy()method to change the layer ordering. This method should be replaced when possible. 1306

Leave a Reply