1 <button data-target="#myModal" data-toggle="modal" data-backdrop="static" data-keyboard="false">
2 Launch demo modal
3 </button>
4
1<div id="idModal" class="modal hide" data-backdrop="static" data-keyboard="false">
1<!-- opening with html, the key is the data-backdrop="static" attribute -->
2<button data-target="#myModal" data-toggle="modal" data-backdrop="static" data-keyboard="false">
3 Launch demo modal
4 </button>
5
6<script>
7//Opening with JS:
8$('#myModal').modal({backdrop: 'static', keyboard: false})
9</script>
1$('#myModal').modal({
2 backdrop: 'static',
3 keyboard: false
4})
5
6or in HTML
7<a data-controls-modal="your_div_id" data-backdrop="static" data-keyboard="false" href="#">
1 <button data-target="#myModal" data-toggle="modal" data-backdrop="static" data-keyboard="false">
2 Launch demo modal
3 </button>`
4