I am getting confused with the internal working of DOM.
Eg: Does document.form.write() means that there are 2 objects “document” and “form” of nested classes.
OOPS representation:
class A{
class B{
write();
}form;
}document;
main()
{
document.form.write("Hello World");
}
I want to know that what does FORM refer to. Is it a Method or Object in DOM?
each level is an object which is what js does instead of classes. Imagine it like this: