Using an HTML button to call a JavaScript function

I am trying to use an HTML button to call a JavaScript function.

Here’s the code:

<input type="button" value="Capacity Chart" onclick="CapacityChart();">

It doesn’t seem to work correctly though. Is there a better way to do this?

Here is the link:http://projectpath.ideapeoplesite.com/bendel/toolscalculators.html click on the capacity tab in the bottom left section. The button should generate an alert if the values are not changed and should produce a chart if you enter values.

8 Answers
8

Leave a Comment