behavior property
Sets the URL of a behavior file.
With the behavior property you can attach HTA or HTC files to style declarations.
These files are useful to create custom elements, with custom functionality.
For more information, visit the behavior (MSDN) page.
JavaScript page for this property: behavior. You can find other example(s) there. |
Possible values:
Any of the following values (use the space character to separate them, each value can be used arbitrary times):
Where behaviorName specifies the name of an Internet Explorer default behavior. | |||||||
Where objID specifies the value of an object element's id attribute. | |||||||
Where URI specifies the location of the behavior file. |
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the behavior property:
|
|||||
<head> <style> .example { behavior: url("hover.htc") } </style> </head> <body> <span class="example">Move the mouse over this text (element with behavior)</span><br /> <span>Move the mouse over this text (element without behavior)</span> </body> |
|||||
|
|||||
Did you find this example helpful?
|
Supported by tags:
a, abbr, acronym, address, applet, area, b, base, baseFont, bdo, bgSound, big, blockQuote, body, br, button, caption, center, cite, code, col, colGroup, comment, dd, del, dfn, dir, div, dl, dt, em, embed, fieldSet, font, form, frame, frameSet, H1, H2, H3, H4, H5, H6, head, hr, html, i, iframe, img, input:button, input:checkbox, input:file, input:hidden, input:image, input:password, input:radio, input:reset, input:submit, input:text, ins, isIndex, kbd, label, legend, li, link, listing, map, marquee, menu, meta, nobr, noFrames, noScript, object, ol, optGroup, option, p, param, 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
External links:
User Contributed Comments