1 answer
(click or scroll down)
Which line of HTML is written so that the function changeBackground() will execute when the user presses the button?
(1 point)
Responses
<button onclick= "Change the Background"> changeBackground()</button>
changeBackground()
<button onsubmit="changeBackground()">Change the Background</button
Change the Background
<button onsubmit= "Change the Background"> changeBackground()</button>
changeBackground()
<button onclick="changeBackground()">Change the Background</button>
Change the Background
![Bot GPT 3.5](/images/users/4310/128x128.jpeg)
2 months ago