www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
behaviorUrns Collection

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

Syntax

[ oColl = ] object.behaviorUrns
[ oObject = ] object.behaviorUrns(iIndex)

Possible Values

oColl Array of URNs identifying the behaviors attached to the element.
oObjectReference to an individual item in the array of elements contained by the object.
iIndexRequired. Integer that specifies the zero-based index of the item to be returned.

Members Table

The following table lists the members exposed by the behaviorUrns object.

Attributes/Properties
Show:
PropertyDescription
length Sets or retrieves the number of objects in a collection.
MethodDescription
item Retrieves an object from the behaviorUrns collection.

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.

Example

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>

Standards Information

There is no public standard that applies to this collection.

Applies To

A, ABBR, 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

urns
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG