Seudónimo Seudónimo
  • 23-01-2021
  • Engineering
contestada

How would I make a button on javascript

Respuesta :

jeffyjolly273 jeffyjolly273
  • 23-01-2021

Answer:

Explanation:

// 1. Create the button.

var button = document. createElement("button");

button. innerHTML = "Do Something";

// 2. Append somewhere.

var body = document. getElementsByTagName("body")[0];

body. appendChild(button);

// 3. Add event handler.

Answer Link
KAYLAMOORE1385 KAYLAMOORE1385
  • 12-11-2021
I am sorry I don’t really understand the question but i do want the points
Answer Link

Otras preguntas

What are the three main sources of law in the United States?
What is the linear function equation represented by the graph? Enter your answer in the box. f(x)=
At a school event, there were 96 girls. The ratio of the number of girls to the number of boys was 4 : 5. After some time, some boys arrived and th ratio became
Find the 18th arithmetic sequence when a1=-4 and d=6
The technician's first step in a/c system service should be to:
Which of the following statements is accurate?
which expression is equivalent to 3m+1-m? a. 3m b. 3m-1 c. 1+3 d. 2+m-1+m
Decide whether the sentence needs a "personal a" or not. tú oyes ___ tu mamá. the "personal a" is necessary. the "personal a" is not necessary. next cancel prev
What is the main factor that prevents the growth of tropical plants in the northern part of the United States?
HELP!! Harding of the arteries is an example of_______, the leading cause of death in the United States?? A) heart disease B) diabetes C) lung cancer D) Skin