javascript Element addBehavior( )

addBehavior( )NN n/a IE 5(Win) DOM n/a  

addBehavior("URL")

  

Attaches an internal or external IE behavior to the current element. After a script attaches the behavior, the element responds to events defined for the behavior (if any), and provides access to properties and methods associated with the behavior. An external behavior file must be served from the same domain (and protocol) as the current page. For more information on applying IE/Windows behaviors, visit http://msdn.microsoft.com/workshop/author/behaviors/overview.asp.

 
Parameters
 
  • For external behaviors, a relative or absolute URL to the .htc file on the server. For internal behaviors, a special format as described in the next item.
 
Returned Value

Integer serial number usable as a parameter for the removeBehavior( ) method.


654,Nickname,Homepage or email,Comments here,Add comment