10. What is the hierarchy of objects in
JavaScript *
(1 Point)
document-form-element-window
form-element-document-window
elements-form-document-window
window-document-form-elements
11
event is called when
Answers
Answer:
A Document object represents the HTML document that is displayed in that window. The Document object has various properties that refer to other objects which allow access to and modification of document content.
The way a document content is accessed and modified is called the Document Object Model, or DOM. The Objects are organized in a hierarchy. This hierarchical structure applies to the organization of objects in a Web document.
Window object − Top of the hierarchy. It is the outmost element of the object hierarchy.
Document object − Each HTML document that gets loaded into a window becomes a document object. The document contains the contents of the page.
Form object − Everything enclosed in the <form>...</form> tags sets the form object.
Form control elements − The form object contains all the elements defined for that object such as text fields, buttons, radio buttons, and checkboxes.
Events are determined via a special variable that can be sent in via the FORM, URL, or REMOTELY called event . If no event is detected as an incoming variable Event driven systems are typically used when there is some asynchronous external activity that needs to be handled by a program