32

Can someone please explain what the difference is between the following two ways to specifying onload callback functions in javascript?

element.onload = callback

AND

element.addEventListener("load",callbak,false)
VinnyD
  • 3,500
  • 9
  • 34
  • 48

0 Answers0