Thursday, September 15, 2005

HTC ( HTML Component )




If u wanna use the HTC,u have to give the style to corresponding controls.

Here I have attached the onblur to textbox.


This is ur HTML or ASPX Page
-----------------------------------

<INPUT TYPE="text" NAME="" style="behavior:url(sankar.htc)"/>



sankar.htc
-----------------------

<PUBLIC:ATTACH EVENT="onblur" ONEVENT="hi()">

<script language="javascript">
function hi()
{
alert(this.value);
}
</script>

No comments: