Yahoo web space - JavaScript Programmer’s Reference Area.href (Property) MSIE represents URLs

JavaScript Programmer’s Reference Area.href (Property) MSIE represents URLs in Link objects. Availability: DOM level 1 JavaScript 1.1 JScript 1.0 Internet Explorer 3.02 Netscape 3.0 Opera 3.0 Property/method value type: String primitive JavaScript syntax: -myArea.href HTML syntax: See also: Location.href, Url.href Area.name (Property) This corresponds to the NAME attribute of the HTML tag. Availability: JavaScript 1.1 JScript 3.0 Internet Explorer 4.0 Netscape 3.0 Property/method value type: String primitive JavaScript syntax: -myArea.name 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. 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. See also: Url.name

Leave a Reply