ExamVeda
Login
Home
51
The word “document” mainly refers to
Discuss
Answer & Solution
Answer: Option B
Solution:
Some pages present static information and can be called documents.
52
Which object is the main entry point to all client-side JavaScript features and APIs?
Discuss
Answer & Solution
Answer: Option C
Solution:
The Window object is the main entry point to all client-side JavaScript features and APIs. It represents a web browser window or frame, and you can refer to it with the identifier window.
53
Which identifier is used to represent a web browser window or frame?
Discuss
Answer & Solution
Answer: Option B
Solution:
The Window object is the main entry point to all client-side JavaScript features and APIs. It represents a web browser window or frame, and you can refer to it with the identifier window.
54
Which property in the Window object is used to refer to a Location object?
Discuss
Answer & Solution
Answer: Option D
Solution:
The Window object defines properties like location, which refers to a Location object that specifies the URL currently displayed in the window and allows a script to load a new URL into the window.
55
Which Window object method is used to display message in a dialog box?
Discuss
Answer & Solution
Answer: Option A
Solution:
The Window object also defines methods like alert(), which displays a message in a dialog box.
56
The setTimeout() method is used to
Discuss
Answer & Solution
Answer: Option B
Solution:
The setTimeout(), which registers a function to be invoked after a specified amount of time.
57
Which of the following is a global object?
Discuss
Answer & Solution
Answer: Option C
Solution:
In client-side JavaScript, the Window object is also the global object. This means that the Window object is at the top of the scope chain and that its properties and methods are effectively global variables and global functions.
58
When will the window property come into play?
Discuss
Answer & Solution
Answer: Option D
Solution:
The Window object has a property named window that always refers to itself. You can use this property if you need to refer to the window object itself, but it is not usually necessary to use window if you just want to refer to access properties of the global window object.
59
Which is the property that represents the content displayed in the window?
Discuss
Answer & Solution
Answer: Option A
Solution:
One of the most important properties of the Window object is document: it refers to a Document object that represents the content displayed in the window.
60
How to pick a document element based on the value of its id attribute?
Discuss
Answer & Solution
Answer: Option B
Solution:
The Document object has important methods such as getElementById(), which returns a single document element (representing an open/close pair of HTML tags and all of the content between them) based on the value of its id attribute.