1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Finger [1]
3 years ago
6

Which of the following JavaScript expressions is equivalent to the given HTML code? ​ a. Document.getelementbyId("menu1").menu=

"class"; b. Document.getelementbyId(menu1= "class name".menu); c. document.getElementById("menu1")."menu"; d. document.getElementById("menu1").className = "menu";
Computers and Technology
1 answer:
LenKa [72]3 years ago
8 0

Answer:

Option (D) is the correct answer to the following question.

Explanation:

In the following question there is some information is missing a line of code which is '<div id="menu1" class="menu">'.

The following option is correct because in the following code the id name is "menu1" and the class name is "menu" and in the option D the id is "menu1" and the class name is "menu". So, that's why this option is correct.

'document.getElementId()' is used to take input from the user or take elements from the document.

Option A is incorrect because there is no menu attribute inside the <div> tag.

Option b is incorrect because inside the parentheses "menu1" is not the class or it inside it, it is not written in that manner.

Option C is incorrect because the name of the class is not written like this at the place of the "className"

You might be interested in
In PKI, the CA periodically distributes a(n) _________ to all users that identifies all revoked certificates.
Trava [24]

Answer:

" CRL (certificate revocation list)" is the appropriate answer.

Explanation:

  • A collection of such subscriber bases containing accreditation or certification status combined with the validation, revocation, or outdated certification within each final customer is known as CRL.
  • Only certain subscribing workstations with a certain underlying cause authentication system should have been duplicated.
4 0
3 years ago
What is the advantage of learning through story compared to learning through personal experience?
Inessa [10]

Answer:

Personal Experience

Explanation:

If a story is based on a personal experience then yes, the two doesn't matter. <em>However</em>, usually learning through personal experience is better because you learn firsthand while stories are written from a different perspective.

6 0
3 years ago
Read 2 more answers
This tag is used to change the appearance of your text on your web page
zaharov [31]

Answer:

b.font tag

is used to change the appearance of your text on your web page

8 0
3 years ago
What is the error in the following pseudocode?
kykrilka [37]
I do not know the answers sorryy
4 0
2 years ago
What is the amount of money you still owe to their credit card company called?
murzikaleks [220]
The money you owe is called a debt or a fee you owe them
3 0
3 years ago
Other questions:
  • What is a nonlinear presentation
    9·2 answers
  • 3. What type of error is in the following sentence? "George W. Bush is the President of the United States of
    5·1 answer
  • Create a cell array, called A, with the following contents: a. Make a copy of A called B. (Nothing complicated: B = A is suffici
    10·1 answer
  • Intuitively, which of the following would happen to e⃗ net if d became very large?
    6·1 answer
  • You are testing a web application for sql injection vulnerabilities. you send various sql statements which return results on the
    5·1 answer
  • Describe the advantages of this trend from the point of view of the patient or the healthcare provider.
    5·1 answer
  • Who created apple and in what year was it created
    9·2 answers
  • At the beginning of Section 5.2, it is stated that multiprogramming and multiprocessing present the same problems, with respect
    8·1 answer
  • 9. Which is an example of a function?<br>(1 Point)<br>=A1 +A2<br>=SUM(A1:A3)<br>=ADD(A1:A3)​
    14·2 answers
  • 45 points!!
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!