Tomcat web server - JavaScript Programmer’s Reference MediaList object (Object/DOM) This object
JavaScript Programmer’s Reference MediaList object (Object/DOM) This object is added to DOM level 2 to support media lists in style sheets. Availability: JavaScript syntax: N DOM level 2 JavaScript 1.5 Netscape 6.0 myMedialist = new MediaList() DOM level 2 specifies the following properties for this object: . mediaText . length DOM level 2 specifies these methods: . item() . deleteMedium() . appendMedium() Member (Definition) Elements within an object. Members of structures and unions in other languages have some analogy with methods and properties of an object. In a procedural language you can access members of a structure by name. So also can you access properties within an object. A member name is an identifier. The notation for accessing structure members in C language and property values in JavaScript is identical: . anObject.aProperty . aCStruct.aMember There is a variation in JavaScript that allows properties to be called as functions, thus: . anObject.aFunctionProperty() This notation can also denote methods that belong to an object. See also: Method, Namespace 1426