ExamVeda
Login
Home
61
What is the property to access the first child of a node?
Discuss
Answer & Solution
Answer: Option D
Solution:
The first child of a node can be accessed using the firstChild property.
62
What are the properties supporting CSS styles for a document element?
Discuss
Answer & Solution
Answer: Option B
Solution:
Each Element object has style and className properties that allow scripts to specify CSS styles for a document element or to alter the CSS class names that apply to the element.
63
The style property belongs to while of the following object?
Discuss
Answer & Solution
Answer: Option A
Solution:
Each Element object has style and className properties that allow scripts to specify CSS styles for a document element or to alter the CSS class names that apply to the element.
64
What is the purpose of the event handlers in the JavaScript?
Discuss
Answer & Solution
Answer: Option C
Solution:
Event handlers allow JavaScript code to alter the behavior of windows, of documents, and of the elements that make up those documents.
65
Which handler is triggered when the content of the document in the window is stable and ready for manipulation?
Discuss
Answer & Solution
Answer: Option A
Solution:
One of the most important event handlers is the onload handler of the Window object. It is triggered when the content of the document displayed in the window is stable and ready to be manipulated. JavaScript code is commonly wrapped within an onload event handler.
66
When a program contains extensive use of event handlers, which of the following is necessary?
Discuss
Answer & Solution
Answer: Option B
Solution:
Nested functions are common in client-side JavaScript, because of its extensive use of event handlers.
67
What is the code snippet to find all container elements with class “reveal”?
Discuss
Answer & Solution
Answer: Option A
Solution:
The above code snippet finds all container elements with class “reveal”.
68
What is the code snippet to update the content of the timestamp element when the user clicks on it?
Discuss
Answer & Solution
Answer: Option B
Solution:
The above code snippet updates the content of the timestamp element when the user clicks on it.
69
Which of the following is not an object?
Discuss
Answer & Solution
Answer: Option C
Solution:
There is no object called Position.
70
What is the code snippet to change the class and let the stylesheet specify the details?
Discuss
Answer & Solution
Answer: Option A
Solution:
The above code snippet changes the class and lets the stylesheet specify the details.