Which of the following is fastest to locate the DOM element ?<br/><br/> a. document.getElementById<br/> b. document.getElementByName<br/> c. document.ElementName.SubElementName<br/> d. They all result in similar performance in retrieving the DOM element.<br/>
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. Which of the following is fastest to locate the DOM element ?

a. document.getElementById
b. document.getElementByName
c. document.ElementName.SubElementName
d. They all result in similar performance in retrieving the DOM element.
Ans. document.ElementName.SubElementName

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     html   dom   javascript


Related Questions

  Difference between SAX and DOM Parser ?
  In what order the elements of a HashSet are retrieved ?
  What is marshalling ?
  What is unmarshalling ?
  If you have access to a function that returns a random integer from one to five, write another function which returns a random integer from one to seven.
 In this url

http://javasearch.buggybread.com/InterviewQuestions/questionSearch.php?searchOption=label&keyword=url

What is protocol , domain , path and query param ?
 Can you name some of the Java frameworks in different domains ?
 What is the difference between RollingFile and RollingRandomAccessFile in log4j ?
 Get all numbers from a collection that are both perfect square and palindome



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: