HTML and CSS Reference
In-Depth Information
<body>
<p> Just a regular paragraph. </p>
<p id="clickable"> I'm special click me. </p>
<p> Just a regular paragraph. </p>
</body>
</html>
The specified hello.htc file looks like this:
<PUBLIC:COMPONENT URN="urn:msdn-microsoft-com:workshop" lightWeight="true">
<PUBLIC:ATTACH EVENT="onclick" FOR="element" ONEVENT="sayHi()" />
<SCRIPT LANGUAGE="JScript">
function sayHi() { alert("Hello World from a bound HTC."); }
</SCRIPT>
</PUBLIC:COMPONENT>
O NLINE http://htmlref.com/ch6/behaviorbinding.html
Compatibility
No specification
IE 5+
Notes
• Starting with IE 8 this property is properly written as -ms-behavior because it is
an extension.
• Mozilla-based browsers such as Firefox support a similar concept using the
-moz-binding property.
Search WWH ::




Custom Search