Which statement is true about the getElementByID() method?
A) It returns only the first element with the specified ID.
B) It returns an array containing all elements with the specified ID.
C) If a match is not found for the specified ID, it will attempt searching by name.
D) If a match is not found for the specified ID, it will attempt searching by tag name.
Correct Answer:
Verified
Q1: Which script block will display Hello World
Q2: Consider the following code: Q3: Consider the following code: Q5: Which choice best defines events and event Q6: Suppose you define two variables as follows: Q7: Consider the following code: Q8: Which statement about the JavaScript form object Q9: Consider the following code: Q10: Consider the following message displayed in a Q11: What is the purpose of the prototype Unlock this Answer For Free Now! View this answer and more for free by performing one of the following actions Scan the QR code to install the App and get 2 free unlocks Unlock quizzes for free by uploading documents