how use alert box on a webpage with the help of javascript code example Example: how to make an alert in html <script> alert('this is an alert'); </script>