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 CommentView 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 CommentView Comments
Ques 43. How to determine the state of a checkbox using Javascript?
var checkedP = window.document.getElementById("myCheckBox").checked;
Is it helpful?
Add CommentView Comments
Ques 44. How to set the focus in an element using Javascript?