Hello,
I am new to java script i wish to know the code for calling a button click event in asp.net using java script.

Recommended Answers

All 2 Replies

<html>
<head>

<script lang='javascript'>
function btn1_click()
{
   //do something;
   alert('in btn1_click function');
}
</script>
</head>
<body>
<input type='button' value='click me' id='btn1' name='btn1' 
onclick='javascript:btn1_click();' >
</body>
</html>

Hi,

plz help me:


will u please tell me how we can check java installation on system?
I have used following code....
--------------------------------------------------------------------------
if(navigator.javaEnabled())
{
document.write("JAVA available");
}
else
{
document.write("No JAVA !!!");
}
--------------------------------------------------------------------------
Above code displays the "JAVA available" eventhough I have uninstalled the java from my system.
Also I have checked the java enable options in IE.
plz help me...............

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.