Question: What is the difference between calling a JavaScript function directly like onclick = "a()" and onclick="JavaScript:a()" where a() is a function written in JavaScript?
A
There is no difference
B
The first technique is correct, only the second is incorrect
C
The second statement is more efficient than the first
D
The first statement looks for a function a() written in any language, whether it is JavaScript or vbscript, and the second technique looks for a function a() specifically written in JavaScript
Question: How would you double the size of an image on a mouseover event, if the original width and height are both 100px and the id of the image is 'logo'?
Question: You do not want the end user to see the JavaScript code embedded in the HTML file when the user views the source of the HTML page. How would you achieve this?
A
This is not possible
B
Use externally linked files which hold the JavaScript code
Question: Consider an HTML form with a checkbox and a text field. When data is entered and the return key is pressed, the data seems to be lost before the user can click on the button that calls the processing function. How do you correct this?
A
Add a TYPE=HIDDEN INPUT to the form
B
Trap the return keypress and return (null)
C
Add 'return false' to onsubmit="..." in the FORM tag