This topic has not yet been rated - Rate this topic

behaviorUrns property

[This documentation is preliminary and is subject to change.]

Returns a collection of Uniform Resource Name (URN) strings identifying the behaviors attached to the element.

Syntax

JavaScript

p = object.behaviorUrns

Property values

Type: IDispatch

Array of URNs identifying the behaviors attached to the element.

Standards information

There are no standards that apply here.

Remarks

A behavior can specify a unique identifier in the form of a URN. If no URN is specified for a behavior, an empty string is specified in the collection. If no behaviors are attached to the element, an empty collection is returned.

Examples

This example demonstrates how to determine the behaviors attached to a div.


<HEAD>
<STYLE>
   DIV { behavior:url(fly.htc) url (zoom.htc) url (fade.htc)}
</STYLE>
function window.onload()
{
   oColl = oDiv.behaviorUrns;
   if (oColl != null)
   {
      for (i=0; i < oColl.length; i++)
	    alert (oColl(i));
   }
}
</HEAD>
<DIV ID=oDiv>I just want to fly</DIV>

See also

urns

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ