script html alert code example
Example 1: how to make an alert in html
<script>
alert('this is an alert');
</script>
Example 2: js alert
alert("Hello! I am an alert box!!");
Example 3: java script alerts
- Information : You can only accept.
- Confirmation: You can accept or decline.
- Prompt : You can accept, decline, and/or sendKeys.