DEV Community

Cover image for How to show alert box javascript?
pavankumarsadhu
pavankumarsadhu

Posted on

How to show alert box javascript?

Hi guys, Today we will see how to show alert box using javascript.

To show alert box, we use javascript default function "alert()".

<script>
var msg = "Hey, you are a developer!";
alert(msg);
</script>
Enter fullscreen mode Exit fullscreen mode

In this way, we can show alert box using javascript.

Thanks for taking your valuable time for reading my post, if you have any queries , please leave a comment and will respond. If you find this post useful, please share it.

Read: How to Increase upload limit upto 1000GB in Wordpress using Increase Upload Limit Plugin for LIFETIME Free of Cost?

Social Profile : LinkedIn

Have a Nice Day!

Top comments (2)

Collapse
 
sloan profile image
Sloan the DEV Moderator

Hi there, it appears that this post contains affiliate links. We ask that posts including affiliate links also contain a clear disclaimer so that readers are aware. Here is some suggested language:

This post includes affiliate links; I may receive compensation if you purchase products or services from the links provided in this article.

Collapse
 
pavankumarsadhu profile image
pavankumarsadhu

Hi there, the link included in my post is a absolutely LIFETIME Free of Cost and also that plugin is developed by me only.

Yeah I will include disclaimer as you said, if post contains affiliate links.

Thanks!