Q:2)which of the following determines whether cookies are enabled in a browser or not?
Q:3)which of the following choices will change the source of the image to “image2.gif” when a user clicks on the image?
Q:4)In an HTML page, the form tag is defined as follows:
(form onSubmit=”return Validate()” action=”http://www.mysite.com/”>
The validate() function is intended to prevent the form from being submitted if the name field in the form is empty. what should the validate() function look like?
5)Consider the following code snippet:
8)what will be output of the following code?
9)which of the following code snippets changes an image on the page?
10)which of the following choices will remove a selection option from the code below?
11)which of the following code snippets shows an alert for an empty string?
var a = “”;
13)Consider the following image definition:
which of the following will change the image to companylogo2.gif when the page loads ?
which of the following options will call the function as soon as the user leaves the field?
16)Consider the three variables:
19)which of the following code snippets will toggle a div element’s background color?
20)which of the following is not a valid method for looping an array?
21)which of the following choices shows the correct result for the code below?
22)A form contains two fields nailed idl and id2. How can you copy the value of the id2 field to idl?
Note: There may be more than one right answer.
the maximum size?
25)An image tag is defined as follows:
The purpose of the ImageChange() function is to change the image source to Image2.jpg. which of the
following should the ImageChange() function look like?
which of the following will change the color of the text box to green, as long as the user is
pressing a key?
27)which of the following functions determines whether the beginning of the paralll instance matches the
28)which of the following code snippets trims whitespace from the beginning and end of the given string
special characters is/are an exception to that rule?
30)which of the following options is used to access the attributes in E4)(?
31)which of the following correctly sets a class for an element?
32)which of the following statements regarding this String prototype is correct?
33)what would be the default setting for the expires attribute of the document.cookie property?
34)which of the following code snippets is more efficient, and why?
38)which of the following will change the color of a paragraph’s text to blue when a user hovers over
it, and reset it back to black when the user hovers out?