how to print entered name in alert message through javascript code example Example: how to alert in javascript alert("Message")