3 try to call a function of the javascript by clicking on a button in the browser

Опубликовано: 30 Март 2026
на канале: Vivek
33
2

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

Here's the code: make sure you use the braces for starting and closing

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... 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