DEV Community

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

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

Anshul Soni
I Love to Code, and make different styles of web pages.
・1 min read

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

Discussion (0)