why you don't call a function for a button javascript code example
Example: button is not calling js function
<script type="text/javascript">
function submitFunction() {
alert("example");
}
</script>
<script type="text/javascript">
function submitFunction() {
alert("example");
}
</script>