Make a simple Javascript Alert



Today in this tutorial, we will learn a very basic thing of javascript.Which is "Alert Box" 🤓 So, let's get into coding...


I'll teach you this tutorial by android.So if you also want to do this using your android phone, then install the code editor app from the install button given bellow 👉🏾

# Follow these steps 👉🏾

Open your Code Editor > Create New Html File
Save
Type the code
Save

Making an alert box in javascript is just a line of code.But you need to write or run (from external .js file) the code in a .html/.htm file.Just write or link the external .js between the opening and closing <script> </script> tag. 



2.Preview



# Source Code :

<script type="text/javascript">
	
	alert("Hello World!");
	
</script>


Comments

Post a Comment