yeah you are rigth but i mean using addEventListener(“load”,function,false);
let me explain beter:
window.onload=function;
AND window.addEventListener("load",function,false);
Both do exactly the same, but some people say that is beter to use the second one.
My question is: Why is better to use the second one?
You must be logged in to reply to this discussion.
Login
1 of 3
This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.