html send message box w3school code example Example 1: how to alert in javascript alert("Message") Example 2: alert jquery alert("Hello! I am an alert box!!");