|
|
HTML Components (HTCs) are a mechanism to implement components in script as Dynamic HTML (DHTML) "behaviors".. Such files typically use a .htc extension.HTC is typically an HTML file (with Javascript/VBScript) and a set elements that define the component. This helps to organize behavior encapsulated script modules that can be attached to parts of a Webpage DOM. Example
In this example, the LI element is given the behavior defined by "hilite.htc" (a file that contains Javascript code defining highlight/lowlight actions on mouse over. The same hilite.htc can then be given to any element in the HTML page -thereforeencapsulating the behavior defined by this file.
Related Ads
|
|