VOOZH about

URL: https://www.geeksforgeeks.org/bootstrap/how-to-get-the-same-behavior-with-confirm-and-bootstrap-modal/

⇱ How to get the same behavior with confirm and bootstrap modal? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to get the same behavior with confirm and bootstrap modal?

Last Updated : 12 Jul, 2025
Bootstrap modal:

In simple words, the Modal component is a dialog box/popup window that is displayed on top of the current page, once the trigger button is clicked. However, clicking on the modal’s backdrop automatically closes the modal. Also, it must be kept in mind that Bootstrap doesn’t support nested modals as they create bad UI experience for the user. Therefore, only one modal window is supported at a time.

Example:

Output:

👁 modelOutput
Comment
Article Tags:

Explore