Fandom

HTML & CSS Wiki

-ms-behavior

649pages on
this wiki
Add New Page
Comments0 Share

The CSS -ms-behavior Microsoft extension property specifies one or more space separated URLs indicating script(s) to attach to a CSS selector. It sets the location of the DHTML (Dynamic HTML) behavior.

Values

Value Description
url(url) Provides an absolute or relative URL reference to the behavior.
url(#object_id) The behavior is a binary implementation. This syntax consists of a hash sign (#) followed by an <object> element id within the document that instantiates the binary implementation.
url(#default#behavior_name) This syntax allows each default behavior to be easily referenced.


HTML example:

<blockquote style="-ms-behavior:url('hilight.htc') url('#behaveBinObject');">
To be or not to be, that is the question.</blockquote>


CSS example:

blockquote { 
            -ms-behavior:url("hilight.htc") url("#behaveBinObject");
}

See Also

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.