javascript window.document in the console

Viewed 129

In javascript when I access window via Chrome console and then go to the document property I get an object with many kinds of properties: Document DOM

But when I access the document like this window.documentin the console I get a different object it seems:

enter image description here

The latter one looks like the DOM API which we can use to manipulate HTML.

Question:

Why are we getting different objects of document when we access the document object in the above mentioned different ways?

0 Answers
Related