warning without using the alert box in javascript code example Example: how to alert in javascript alert("Message")