Javascript DOM Event addEventListener

Javascript examples for DOM Event:addEventListener

Description

Click the following links for the tutorial for DOM Event and addEventListener.

  1. addEventListener("abort", myFunction); for image element
  2. addEventListener("abort", myFunction); for audio or video element
  3. addEventListener("afterprint", myFunction)
  4. addEventListener("beforeprint", myFunction);
  5. addEventListener("beforeunload", myFunction);
  6. addEventListener("blur", myFunction);
  7. addEventListener("canplay", myFunction);
  8. addEventListener("canplaythrough", myFunction);


  9. addEventListener("change", myFunction);
  10. addEventListener("click", myFunction);
  11. addEventListener("contextmenu", myFunction);
  12. addEventListener("copy", myFunction);
  13. addEventListener("cut", myFunction);
  14. addEventListener("dblclick", myFunction);
  15. addEventListener("drag", function(event));
  16. addEventListener("dragend", function(event);


  17. addEventListener("dragenter", function(event));
  18. addEventListener("dragleave", function(event));
  19. addEventListener("dragover", function(event));
  20. addEventListener("dragstart", function(event));
  21. addEventListener("drop", function(event) );
  22. addEventListener("durationchange", myFunction);
  23. addEventListener("ended", myFunction);
  24. addEventListener("error", myFunction);
  25. addEventListener("focus", myFunction);
  26. addEventListener("focusin", myFunction);
  27. addEventListener("focusout", myFunction);
  28. addEventListener("hashchange", myFunction);
  29. addEventListener("input", myFunction);
  30. addEventListener("invalid", myFunction);
  31. addEventListener("keydown", myFunction);
  32. addEventListener("keypress", myFunction);
  33. addEventListener("keyup", myFunction);
  34. addEventListener("load", myFunction);
  35. addEventListener("loadeddata", myFunction);
  36. addEventListener("loadedmetadata", myFunction);
  37. addEventListener("loadstart", myFunction);
  38. addEventListener("message", myfunction());
  39. addEventListener("mousedown", mouseDown);
  40. addEventListener("mouseenter", mouseEnter);
  41. addEventListener("mouseleave", mouseLeave);
  42. addEventListener("mousemove", function(event));
  43. addEventListener("mouseout", mouseOut);
  44. addEventListener("mouseover", mouseOver);
  45. addEventListener("mouseup", mouseUp);
  46. addEventListener("offline", offFunction);
  47. addEventListener("online", onFunction);
  48. addEventListener("open", myfunction());
  49. addEventListener("pagehide", myFunction);
  50. addEventListener("pageshow", myFunction);
  51. addEventListener("paste", myFunction);
  52. addEventListener("pause", myFunction);
  53. addEventListener("play", myFunction);
  54. addEventListener("playing", myFunction);
  55. addEventListener("progress", myFunction);
  56. addEventListener("ratechange", myFunction);H:Description
  57. addEventListener("reset", myFunction);
  58. addEventListener("resize", myFunction);
  59. addEventListener("scroll", myFunction);
  60. addEventListener("search", myFunction);
  61. addEventListener("seeked", myFunction);
  62. addEventListener("seeking", myFunction);
  63. addEventListener("select", myFunction);
  64. addEventListener("show", myFunction);
  65. addEventListener("installed", myFunction);
  66. addEventListener("submit", myFunction);
  67. addEventListener("onsuspend", myFunction);
  68. addEventListener("timeupdate", myFunction);
  69. addEventListener("toggle", myFunction);
  70. addEventListener('unload', myFunction);
  71. addEventListener("volumechange", myFunction);
  72. addEventListener("waiting", myFunction);
  73. addEventListener("wheel", myFunction);