how to run operation on click of alert in javascript code example Example: simple alert program in javascript alert("this is the alert")