how to display a message when a button is clicked in html code example Example: simple alert program in javascript alert("this is the alert")