The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's Style Sheets Reference

| Index | Current Category: Behavior |
| Previous Style: background-repeat | Next Style: border |


behavior

Assigns a behavior to an element.

Support:

W3C StandardInternet ExplorerNetscape Navigator
Not supported 5.0 and later Not supported
Notes:
  • A behavior is a script or object that extends the functionality of an element. It's stored in a separate file, so it's easy to reuse the behavior on other pages.
  • See Microsoft's DHTML Behaviors page for an in-depth description of behaviors.
Possible Values:
[default behavior]
The name of a default behavior supported by the browser.

Support:

W3C StandardInternet ExplorerNetscape Navigator
Not supported 5.0 and later Not supported

Notes:
  • Use the following syntax:

    url(#default#name)

    Here, name is the name of the default behavior.

  • Microsoft has a reference page that lists the various Internet Explorer default behaviors.

[object ID]
The object ID of a binary behavior.

Support:

W3C StandardInternet ExplorerNetscape Navigator
Not supported 5.0 and later Not supported

Notes:
  • Use the following syntax:

    url(#objectID)

    Here, objectID is the ID assigned to an <OBJECT> tag that implements the behavior.

[url]
The file name or full URL of the behavior.

Support:

W3C StandardInternet ExplorerNetscape Navigator
Not supported 5.0 and later Not supported

Notes:
  • Use the following syntax:

    url(address)

    Here, address is the name or URL of the behavior.

Example:
<UL STYLE="behavior: url(toggle.htc)">

| Index | Current Category: Behavior |
| Previous Style: background-repeat | Next Style: border |