behaviorNN n/a IE 5(Win) CSS n/a

Inherited: No

Associates an external behavior definition to the element.

 
CSS Syntax
 
behavior: uri[, uri[, ...]]
 
Value

CSS-formatted URL value, with the actual URL pointing to an external .htc file, ID of an object element that loads a behavior ActiveX control into the page, or one of the built-in default behaviors (in the format url(#default#behaviorName)). Default behavior names are:

For details on what these default behaviors do and under what security conditions you can use them, visit http://msdn.microsoft.com/workshop/author/behaviors/reference/reference.asp.

anchorClickanimclientCapsdownload
homePagehttpFoldermediaBarsaveFavorite
saveHistorysaveSnapshotuserData
 
Initial Value

None.

 
Example
 
input.numOnly {behavior: url(numInput.htc)}
 
Applies To

All elements.

 
Object Model Reference
 
[window.]document.getElementById("elementID").style.behavior
[window.]document.getElementById("elementID").behaviorUrns[i]