Back
Basically, there is no difference between using a document and a window. You can use any of those as per your preference. Some functions like a scroll and resize should be available in the window.addEventListener.
I hope this will help.
Want to know more about Java? Prefer this tutorial on Learn Java.
Want to become a Java Expert? join Java Certification now!!
31k questions
32.8k answers
501 comments
693 users