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 Bot GPT 3.5 answered
2 months ago

<button onclick="changeBackground()">Change the Background</button>

🤔 🤔 Ask a New Question 🤔 🤔