DEV Community

Cover image for How to make a Alert / Pop-up Box in under 1 minute...
Anshul Soni
Anshul Soni

Posted on

How to make a Alert / Pop-up Box in under 1 minute...

For this we are using JavaScript :

<!DOCTYPE html>
<html>
<head>

    <title>Alert / Pop-up</title>

</head>
<body>


        <div id="output"></div>

        <script type="text/javascript">

                //pop-up / alert box
                window.alert("This is a Alert Box"); 



        </script>

</body>
</html>

Enter fullscreen mode Exit fullscreen mode

Top comments (0)