The WINDOW object has a global range in the reading.
All other objects that are associated with a reader window or HTML document are considered members of the WINDOW object.
For a web browser both lines of code are the same.
window.alert("Wellcome to me");
alert("Wellcome to me");
WINDOW object the same purpose even in this case: