How to trigger modal in JavaScript?
Trigger the Modal Via data-* Attributes
Add data-toggle="modal" and data-target="#modalID" to any element.
What is the difference between alert and modal?
In terms of web design a modal is a box that will disrupt a page by overlaying on top of it and prevent interaction – just like an alert. The difference is that modals need direct interaction in order to be dismissed. They will often display a dialog box with a button that can be clicked to dismiss the box.