I was messing around with Chrome's console, and I found a function (in all websites) named Document
. I tried to look this up, but since Google isn't case sensitive, I just found info about document.getElement...()
. This function doesn't appear to be a JSON object, like document
, but an actual function.
What is this function, and what is it used for?
The MDN Page still seems to be referencing document
instead of Document
, as seen below.
I just tested this in Firefox with both the built in console and Firebug, and it returns the same as the above screenshot.
I have found that both MDN and W3 reference the document
object as "Document", even though the Document
function is not the same as the document
object.