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
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

SubashPosted Sep 7, 2016, 3:24 AM
Great