Java - Online Test - Javascript -


Search Java Test Questions

 223 test questions in repository.

Java - Test Questions on 'Javascript' - 2 questions found

Which of the following is fastest to locate the DOM element ?HTML
They all result in similar performance in retrieving the DOM element.

  html  dom  javascript

Why should we have Javascript method definitions within HTML Head section ?Javascript
Its safe to have javascript code within head section
Head section gets loaded even if there is any error in loading HTML page
Head section gets executed first and hence assure that js method definition will be loaded before they are called
So that we can have method definition and method call at the same place

  html  head section  javascript

comments powered by Disqus