Get Control

Dear All,

 We have get control in use jscript, in below code use to done the find control

ASPX page

<script language="javascript" type="text/javascript">
 window.onload = function s() {
        debugger;
        var ss = document.getElementById("button");
        ss.onclick = click;
}
function click(event) {
        alert('hello');
        
    }
<.jscript>

  <form id="form1" runat="server">
<asp:button id="button" text="click" />

</form>

   In the above code client side click event work as button click.And this event create in

1.Find button ID in Jsccript

2. this button click then alert box open

Thanks

Sreejesh

Next Recommended Reading Getting Alphabets from Number using C#