alert example in javascript Example 1: simple alert program in javascript alert("this is the alert") Example 2: how to alert in javascript alert("Message")