behaviorUrns property
Returns a collection of Uniform Resource Name (URN) strings identifying the behaviors attached to the element.
This property is not supported for Windows Store apps using JavaScript.
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.
<!DOCTYPE html>
<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>