close modal popup on background click off code example
Example 1: bootstrap modal prevent close
$('#myModal').modal({backdrop: 'static', keyboard: false})
Example 2: bootstrap modal not close
$('#MymodalPreventScript').modal({
backdrop: 'static',
keyboard: false
});