| Author: vipul 05 Sep 2008 | Member Level: Diamond | Rating: Points: 2 |
hi, first of all you write your javascript function between header and if you used asp.net button control then you used onclientclick event of calling javscript button and if you used html button then used onclick event to calling javascript function.
vipul, http://dongavipul.blogspot.com
Patel Vipul Web Developer Ahmedabad ( Gujarat )
|
| Author: kalaimanichozhan 05 Sep 2008 | Member Level: Gold | Rating: Points: 3 |
I hope this coding will helps you.
<header> <script language="javascript"> function fun1() { alert("This is from javascript");
}
</script> </header> <form id="form1" action="default2.aspx"> <input type=text name="txtbox1" Onclick="fun1()"> </form>
regards kalai.
|