Inside JavaScript

The urns Method

The urns method retrieves a collection of all objects to which a specified behavior is attached. You can see the support for this method in Table 6.54.

Table 6.54. The urns Method

Method

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

urns( URN )

             

x

x

x

 

Returns: Array of behaviors

You pass this method the Uniform Resource Name (URN) of an Internet Explorer behavior, and it returns an array of objects that have that behavior associated with them. We'll see more on Internet Explorer behaviors in Chapter 17.

And that's it for JavaScript's core HTML methods . Next, I'll take a look at JavaScript's Core HTML Events.

Категории