One thing I've always wanted to know, is whether to use addEventListener
or the property of the <body onload="">
tag. Some say it's addEventListener
and some say it's property. Does anyone have an OFFICIAL answer?
I'd also like to know why addEventListener
sometimes activates the event 4 times for no reason at all. It seems to me totally bugged and still does not work in old Internet Explorer. Why am I going to use such a thing?