Answers for "alert messages"

13

how to make an alert in html

<script>
  alert('this is an alert');
</script>
Posted by: Guest on May-06-2020
0

bootstrap Alerts Additional content Dismissing

<div class="alert alert-warning alert-dismissible fade show" role="alert">
  <strong>Holy guacamole!</strong> You should check in on some of those fields below.
  <button type="button" class="close" data-dismiss="alert" aria-label="Close">
    <span aria-hidden="true">&times;</span>
  </button>
</div>

Enable dismissal of an alert via JavaScript:

$('.alert').alert()
$().alert('close')
$().alert()
$().alert('dispose')

Events

close.bs.alert
closed.bs.alert
Posted by: Guest on October-23-2020

Browse Popular Code Answers by Language