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
What is the primary language used to write web content and is the default format for Outlook messages?
iris [78.8K]

Answer:

HTML

Explanation:

It is the HTML format, and it is the default format for Outlook messages as well. However, the Outlook messages support the Rich Text Format and Plain text as well. However, the default format is certainly the HTML format. And the rest of the options can be selected. Hence, the correct option for this question is certainly the HTML.

3 0
3 years ago
Read 2 more answers
Which one of the following is a type of network security?
valina [46]

Answer:

I think it's (login security)

5 0
3 years ago
Jenifer wants to add some more hardware to her computer system. If she is adding a video card and a sound card, what must she us
ruslelena [56]

Answer:OA

Explanation:  expansion slots, the cards need to slide into the slots to become installed in the back of her pc.

3 0
1 year ago
What code do I have to use in my php if i don’t want my $_SESSION[“variablex”] to destroy? But i already have a session_destroy(
Vesnalui [34]

Answer:

See Explanation Below

Explanation:

Follow the steps below.

1. Start Session

2. Assign the session you want to preserve ( $_SESSION['variablex'] ) to a variable

3. Destroy all session (including the one you want, $_SESSION['variablex'])

4. Reassign the contents of the variable you created in (1) above to $_SESSION['variablex'].

The code is as follows (comments explain each line)

<?php

session_start(); // Start session

$variable = $_SESSION['variablex'] ; // assign $_SESSION['variablex'] to $variable

session_destroy(); // Destroy sessions

$_SESSION['variablex'] = $variable; // assign $variable back to $_SESSION['variablex'] to

// You can continue your code (if you have any), here

// End of solution

?>

5 0
3 years ago
Consider the following statement: String myMiddleInitial = “h”;
Levart [38]

Answer:

It may depend on the programming language, but this looks correct!

Good Job! :)

Explanation:

Could you please mark this answer as brainiest?

It would help me a lot :)

Thanks!

6 0
3 years ago
Other questions:
  • Bianca is preparing special dishes for her daughter’s birthday. It takes her a minutes to prepare the first dish, and each follo
    11·1 answer
  • I need some cool things to do with windows command prompt.
    13·1 answer
  • Operating software is a must in every software (a) True (b) False
    8·1 answer
  • 5.19 LAB: Countdown until matching digits Write a program that takes in an integer in the range 20-98 as input. The output is a
    14·1 answer
  • What is the name given to the amount that a particular camera’s lens opens?
    12·1 answer
  • A PC is not able to connect to a wired network. Pinging the loopback address is successful, but the gateway cannot be reached. O
    12·1 answer
  • The problem analysis phase typically includes which of the following tasks? (Points : 2) Negotiate baseline scope.
    10·1 answer
  • Can someone help me in my IT (information technology) homework
    10·2 answers
  • What is the extension of Photoshop file?​
    7·1 answer
  • Who is this wrong answers only
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!