Surely obvious but wanna be sure after some surprises in IE.
I've some js code defined in a .js file (nothing surprising here...).
I'd like to know what's the best practice to use this code (raw js, no framework here).
Is it valid to:
insert
window.onload = foo;inside the .js filedefine
fooin the html (foocontaining objects defined in the file).
Is it still possible to define other
window.onloadin the html?
If not, what's the best practice? Thanks in advance.