| Author: anita singh 30 Jan 2007 | Member Level: Gold | Rating: Points: 2 |
on server control or on html control u wanna use javascript (1) if on server control just add this in page_load Button1.attribute.add("onclick","_javascript:return iopl()");
in head section of html write this <script language="javascript"> function iopl() { alert('hi checking for javascript'); return false; }
</script>
|
| Author: RamarajSundaram 30 Jan 2007 | Member Level: Diamond | Rating: Points: 2 |
we can use this way also,
Response.Write("<script language=javascript> self.close()</script>");
|
| Author: DotNetGuts (DNG) 30 Jan 2007 | Member Level: Diamond | Rating: Points: 2 |
R u talking abt. windows application????
if not thn... Button1.Attributes.Add("onclick", "alert('Hi');");
|