Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Practice InterviewNew Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

JavaScript Interview Questions and Answers

Ques 41. Is a Javascript script faster than an ASP script?

Ans. Yes.Since Javascript is a client-side script it does require the web server\'s help for its
computation,so it is always faster than any server-side script like ASP,PHP,etc..

Is it helpful? Add Comment View Comments
Ques 42. How to get the contents of an input box using Javascript?
Ans. Use the \"value\" property.
var myValue = window.document.getElementById(\"MyTextBox\").value;
Is it helpful? Add Comment View Comments
Ques 43. How to determine the state of a checkbox using Javascript?
Ans. var checkedP = window.document.getElementById(\"myCheckBox\").checked;
Is it helpful? Add Comment View Comments
Ques 44. How to set the focus in an element using Javascript?
Ans. <script> function setFocus() { if(focusElement != null) { document.forms[0].elements[\"myelementname\"].focus(); } } </script>
Is it helpful? Add Comment View Comments
Ques 45. What is the difference between an alert box and a confirmation box?
Ans. An alert box displays only one button which is the OK button whereas the Confirm box displays two buttons namely OK and cancel.
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2018 WithoutBook