Java - Online Test - Script - javasearch.buggybread.com


Share

Search Java Test Questions


 223 test questions in repository.




Java - Test Questions on 'Script' - 3 questions found


Which of the following is fastest to locate the DOM element ?HTML
document.getElementById
document.getElementByName
document.ElementName.SubElementName
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

Which of the following file is called deployment descriptor ?Java EE
application.xml
web.xml
config.xml
web-application.xml

  deployment descriptor







comments powered by Disqus