Javascript Popup alert
The javascript alert() method (pop-up) displays an alert box with a specified message and an OK button.
An alert box is often provided if you want to make sure information comes through to the user.
Syntax:
alert(message)
EXAMPLE:
<!DOCTYPE html>
<html>
<body>
<p>Click the button to demonstrate line-breaks in an alert box.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
alert("Hello\nHow are you?");
}
</script>
</body>
</html>
OUTPUT:
