Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Event handler Example



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

Post New Answer

More JavaScript Interview Questions

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......

1 Answers  


What is undefined value means in javascript?

0 Answers  


Is JavaScript case sensitive? Give an example?

0 Answers  


What is the microsoft version of javascript?

0 Answers  


What does three dots mean in texting?

0 Answers  


What is callback in javascript?

0 Answers  


What does === mean in js?

0 Answers  


What is an Event Bubbling in Javascript?

0 Answers  


How do you create array in javascript?

0 Answers  


why can't we call a static method from a non-static method

0 Answers  


Is a javascript script faster than an asp script?

0 Answers  


Why is javascript not oop?

0 Answers  


Categories