code between the body tag

In the above example, we have displayed the dynamic content using JavaScript. Let’s see the simple example of JavaScript that displays alert dialog box.

<script type="text/javascript">  

 alert("Hello Javatpoint");  

</script>

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *