Correct Answer: Both JavaScript and Jscript are almost similar JavaScript was developed by Netscape Microsoft reverse engineered Javascript and called it JScript
2. If an array with name as "names" contain three elements, then how will you print the third element of this array?
Correct Answer: Use documentforms[0]submit(); (0 refers to the index of the form ? if you have more than one form in a page, then the first one has the index 0, second has index 1 and so on)
Correct Answer: I/O operations like reading or writing a file is not possible with client-side javascript However , this can be done by coding a Java applet that reads files for the script
Correct Answer: This depends on the user's browser and OS In the case of Netscape with Windows OS,all the cookies are stored in a single file called cookiestxt c:\Program Files\Netscape\Users\username\cookiestxt In the case of IE,each cookie is stored in a separate file namely username@websitetxt c:\Windows\Cookies\username@Websitetxt
Correct Answer: Generation of HTML pages on-the-fly without accessing the Web server The user can be given control over the browser like User input validation Simple computations can be performed on the client's machine The user's browser, OS, screen size, etc can be detected Date and Time Handling
Correct Answer: Nojava and javascript are two different languages Java is a powerful object - oriented programming language like C++,C whereas Javascript is a client-side scripting language with some limitations
9. How to get the contents of an input box using Javascript?