How would I make a button on javascript

Answers

Answer 1

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 2
I am sorry I don’t really understand the question but i do want the points

Related Questions

Other Questions
find the solution to the following system using subsitution or elimination y=2x-1 y=5x-7 What is the predicted human population in 2050? (Site 1) Towns a and b are 10km apart. Uncle bill wants a new house at least 5km away from town b What is one way to approach reading a difficult piece of literature?A) Read the CliffsNotes.B) Read it quickly. C) Read every sentence at least twice. D) Ask questions and make predictions. Please help!!:Given PQ with P(2, 5) and Q(6, 2), find point R on PQ such that PRRQ=35. Justify your response. A. R(a, b) can be found using a=2+35(8) and b=5+35(3) to get R(2.8, 3.2)B. R(a, b) can be found using a=6+35(8) and b=2+35(3) to get R(1.2, 3.8).C. R(a, b) can be found using a=6+35(8) and b=2+35(3) to get R(10.8, 0.2).D. R(a, b) can be found using a=235(8) and b=535(3) to get R(6.8, 6.8). Under what conditions can carrying capacity for a population reachequilibrium?A. When food, water, and space used by a population stay stable overtimeB. When the population is in competition with a population of anotherspeciesC. When the death rate equals the birth rate for a populationD. When the number of individuals migrating out of a populationequals the number moving in Whices the last verse stanzas of the poA. The stanzas are all the same length and size. B. The stanzas are even and have clear endings. C. The stanzas become smaller as the poem builds. D. The stanzas are uneven and do not have clear endings. If k is a constant, what is the value of k such that the polynomial 2ky^-kx-8 is divisible by (x-2) Think of a place that you visited during your holidays .Write an esssay in 200 to 250 words describing the place ,its popular tourist spots,the peaple living there, the life led by them,and the speciality of the place What's the tone of this passage?"Object there was none. Passion there was none. I loved the old man. He had never wronged me. He had never given me insult. For his gold eye I had no desire. I think it was his eye! yes, it was this!" from The Tell-Tale Heart.I'm reposting this, but with more context for people who have not read the story. So basically the narrator is planning on killing the old man because he has a disfigured eye and it annoys him really bad. The narrator may or may not be insane. 5.How far must a 5 N force pull a 50 g toy car if 30 J of energy are transferred? Some people think of computer programming as a male-dominated field. But the first algorithm to be executed by a computer was created by Ada Lovelace and the first compiler (which is a tool for converting one programming language into another) was created by Grace Hopper. What do you think could be done to encourage more women to study computer science? Which of these is required for aerobic cellular respiration? Bohr models show _________ while Dot Diagrams show _______ electrons only. Which expression is equal to c24c+412c3+30c2c246c4+15c3? Soro bought a $50.00 bus card at the beginning of the week. Each bus ride costs $2.50. He needs to have at least $20.00 on his card at the end of this month.To determine how many bus rides he can take between now and the end of this month, Soro wrote and solved the following inequality:50 minus 2.5 x greater-than-or-equal-to 20. Negative 2.5 x greater-than-or-equal-to negative 30. x greater-than-or-equal-to 12.What error, if any, did Soro make when writing or solving this inequality?Soros original inequality should have been 50 minus 2.5 x less-than-or-equal-to 20 .Soro should have added 2.5 to each side for his first step.Soro should have reversed the inequality symbol when using the division property of inequality.Soros work shows no errors. Bill received a total of $12 to feed a neighbours cat for 3 days. How much he earns in one day? How many days will he have to feed the cat to earn $40? A survey of all beings on planet Mimstoon had 75 beings surveyed altogether. If 72 preferred alaber juice to all other juices, what percent of beings in the survey preferred alaber juice? a shape has a volume of approximately 133 cubic units which of the following is the best represent the radius of the sphere John the Baptizer was a Jewish ascetic who believed in the coming _______________ where he expected the wicked to be judged and punished.