Which of the following JavaScript expressions is equivalent to the given HTML code?
?
          

A. document.getElementById("menu1").className = "menu";
B. document.getElementById("menu1")."menu";
C. Document.getelementbyId(menu1= "class name".menu);
D. Document.getelementbyId("menu1").menu= "class";

Answer: A

Computer Science & Information Technology

You might also like to view...

What kinds of what-if analysis should be conducted to ensure a good decision is made?

What will be an ideal response?

Computer Science & Information Technology

On a histogram, the pixels at the far left have a grayscale value of ____.

A. -255 B. -1 C. 0 D. 255

Computer Science & Information Technology