Returns a collection of Uniform Resource Name (URN) strings identifying the behaviors attached to the element.
Syntax
[ collBehaviorUrns = ] object.behaviorUrns [ sBehaviorUrn = ] object.behaviorUrns(iIndex)
Possible Values
collBehaviorUrns Array of URNs identifying the behaviors attached to the element. sBehaviorUrn Reference to an item in the array of behavior URNs. iIndex Required. Integer that indicates the zero-based index of the item to be returned.
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.
Members
Example
This example shows how to display the URN of every behavior attached to a specified 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>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR, XML, XMP
See Also