browser objects why we need to use reference of window foe using browser object like location, document
I am trying to understand which are browser object and which are window object? and document is window object or property?
browser objects why we need to use reference of window foe using browser object like location, document
I am trying to understand which are browser object and which are window object? and document is window object or property?
If I understand your question correctly, things like
locationanddocumentare properties ofwindow. However, as any property of window is implicitly global, it's common to just typedocumentinstead ofwindow.document.