Beginning with Internet Explorer version 5.5, Microsoft included support within their browsers for a special component called a behavior. In general, a behavior encapsulates specific functionality within a web page.
You must place the .htc file that contains the behavior within the same folder as the HTML page to which you attach the behavior. When a user later downloads the page, the browser will also download the .htc file.
Before you can use web services within an HTML file, you must first download the Webservice.htc file, which contains the Webservice behavior. You can download the file from the Microsoft website shown in Figure 3.1. The Microsoft website also provides a tutorial that details the steps you must perform to use the behavior.
Figure 3.1: You can download the Webservice.htc file from the Microsoft website.
<body onload="InitializeService()" style="behavior:url(webservice.htc)">