Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
JavaScript |
p = object.behaviorUrns |
Type: IDispatch
Array of URNs identifying the behaviors attached to the element.
There are no standards that apply here.
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.
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>
Please sign in to use this experience.
Sign in