• +91 9723535972
  • info@interviewmaterial.com

Java Script Interview Questions and Answers

Question - How to Handle Event Handlers?

Answer - You can add an event handler in the HTML definition of the element like this, You can also use an anonymous method like this: document.getElementById("hitme3").onclick = function () { alert("howdy!"); } You can also use the W3C addEvventListener() method, but it does not work in IE yet:

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners