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:
We are group of professionals with the same objective for helping school students who are struggling in NCERT Questions Answers. We are just sharing our knowledge for the students and helping them by providing Questions Answers.
At Halpura we are reimagining the actual potentials of quality information resources reaching people across the globe to make an everlasting impact.
Copyright 2017, All Rights Reserved. A Product Design BY CoreNet Web Technology