1<script>
2 function myFunction() {
3 alert("ALERT");
4 }
5</script>
6<button onclick="myFunction">Click</button>
1<script>
2 $(document).ready(function(){
3 $('#MyButton').click(function(){
4 CapacityChart();
5 });
6 });
7</script>
8
9<input type="button" value="Capacity Chart" id="MyButton" >
1<button onclick="myFunction()">Click me</button>
2
3<p id="demo"></p>
4
5<script>
6function myFunction() {
7 document.getElementById("demo").innerHTML = "Hello World";
8}
9</script>