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

ocean animals are adapted to life in what zone
Which of the following is true of right triangles? All sides are congruent. Two of the angles are acute. The sum of the angle measures is 360°. Two of the angle
What is the size of the universe
4^2 + 5 • 3^2 – 4^2 ÷ 2^3
A total of 40 peopleade cakes for a bake sale.Each person made 3 cakes.Mrs.sanchez found that 15% of these cakes were chocolate.How many chocolate cakes were ma
fiction writing appeals to our?
What do quotation marks signal to the reader?
Please help!! -5 = 7 + 3r
In the "Nun's Priest's Tale" of The Cantebury Tales, Chanticleer's fatal flaw is greed.
Tara's and jody's bedrooms are shaped like rectángulos. Tara's bedroom is 9 feet long and 8 feet wide. Jody's bedroom is 7 feet long and 10 feet wide. Whose bed