Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

JavaScript Interview Questions and Answers

Test your skills through the online practice test: JavaScript Quiz Online Practice Test

Related differences

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

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?

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?

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?

<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?

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:

©2024 WithoutBook
JavaScript vs JqueryJavaScript vs VBScriptJavaScript vs TypeScript