var document = "temp";
function showDocument()
{
alert(document); // temp or HTML DOM Document
}
It showed "HTML DOM Document" for me, which should be the case. Is it an object, reserved keyword, read-only object?
If it's an object, it should be editable. If it's a reserved keyword, JavaScript should throw an error/exception. If it's read-only, how can I modify the DOM itself which is accessible through document only?