modals with no posibility to close if you click outside code example Example: bootstrap modal prevent close $('#myModal').modal({backdrop: 'static', keyboard: false})