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...

A(n) ___________________ is a method that automatically executes in response to an event.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The item marked ____ in the accompanying figure accepts a height attribute that allows you to select how many rows are visible.

A. 1 B. 2 C. 3 D. 4

Computer Science & Information Technology

Briefly explain what is needed to install and use ISDN.

What will be an ideal response?

Computer Science & Information Technology

A(n) ____________________ is a process to determine which software versions are installed on a PC or network server to verify software licenses.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology