This may be a basic question. I have a button which is
<button type="button">Click Me!</button>
And then I have a script which is:
<script>
alert("My First JavaScript");
</script>
To call this script I can say onclick call another php or html file. But I want to add this script to the same file instead of adding a new file. Any suggestion will be appreciated.