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

Explain “use strict” ?

0 Answers  


How javascript variables work?

0 Answers  


What is the use of decodeuri() and encodeuri()?

0 Answers  


What is difference between module.exports and export?

0 Answers  


What is whitespace in javascript?

0 Answers  


Can we learn javascript without knowing java?

0 Answers  


What is the similarity between the 1st and 2nd statement?

0 Answers  


How do I run javascript on my iphone?

0 Answers  


What is rest parameters in javascript?

0 Answers  


What is createtextnode?

0 Answers  


What is the use of spread operator?

0 Answers  


What is noscript tag?

0 Answers  


Categories