JavaScript Alert Box Example

Alert Box simply display a message to user on browser.

Example

<!DOCTYPE html>
<html lang="en">
<head>
  <title>JavaScript Alert Box</title>
</head>
<body>

  <input type="button" onclick="alert('Wow.. This example represent alert box.');" value="Open Alert Box" />

</body>
</html>

Run it...   »

Example Result