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)

Cloudinary image

Video API: manage, encode, and optimize for any device, channel or network condition. Deliver branded video experiences in minutes and get deep engagement insights.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay