Maeve created a button, but it doesn't do anything yet. What needs to be added so that a function will be called to run when the user clicks the button?

A. when
B. onclick
C. onbutton
D. button

B. onclick

The 'onclick' attribute is used to specify the function that will be called when the user clicks the button. By adding the 'onclick' attribute followed by the function name in the button element, Maeve can ensure that the function will run when the button is clicked.