js alert with button code example Example 1: how to make alert in javascript alert("Alert") Example 2: how to alert in javascript alert("Message")