I accidentally did the following and to my surprise it worked!
one.addEventListener('mouseover', myFunction);
I am assuming this is a shorthand way of doing the following:
document.getElementById('one').addEventListener('mouseover', myFunction);
I am wondering are the two equivalent and will this work in any browser?