Im trying to add an onclick button

Add an onclick event handler that calls the content() function to the button element in the main section.

<button type="button" onclick="content()">View new page content</button>

This is what I did but it does not run. Am I doing something wrong?

If this is related to a challenge, please post the challenge url and your complete code.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.