Event handler Example
Answer / hrpatelsoft@gmail.com
<html>
<head>
<title>DOM!!!</title>
</head>
<body>
<input type="button" id="btnClick" value="Click Me!!" />
<script type="text/javascript">
document.getElementById("btnClick").addEventListener("click", clicked);
function clicked()
{
alert("You clicked me!!!");
}
</script>
</body>
</html>
| Is This Answer Correct ? | 0 Yes | 0 No |
Can any one tell me about s_objectID used for the anchor tag why it is used, what for and how to use it properly. with an example...please please......
What is undefined value means in javascript?
Is JavaScript case sensitive? Give an example?
What is the microsoft version of javascript?
What does three dots mean in texting?
What is callback in javascript?
What does === mean in js?
What is an Event Bubbling in Javascript?
How do you create array in javascript?
why can't we call a static method from a non-static method
Is a javascript script faster than an asp script?
Why is javascript not oop?