about 9 years ago
an event listener method fires whenever user clicks on a button. It attaches an event handler to the document. Example
<!DOCTYPE html> <html> <body> <p>This is the example of addEventListener() method.</p> <button id="my">Result</button> <p id="xyz"></p> <script> document.getElementById("my").addEventListener("click", displayDate); function displayDate() { document.getElementById("xyz").innerHTML = Date(); } </script> </body> </html>
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)