bootstrap 3 modal before show code example
Example 1: how to show bootstrap modal
<script>
var myModal = new bootstrap.Modal(document.getElementById('ModalID'))
myModal.show()
</script>
Example 2: bootstrap 3 modal close only with button
<--! Add following to modal Div : data-backdrop='static' -->
<div id="modal" class="modal hide fade in" data-keyboard="false" data-backdrop="static">