I am trying to use an HTML button to call a JavaScript function.
Here\'s the code:
This looks correct. I guess you defined your function either with a different name or in a context which isn't visible to the button. Please add some code