bootstrap show modal by default code example
Example 1: bootstrap show modal on page load
<script type="text/javascript">
$(window).on('load',function(){
$('#myModal').modal('show');
});
</script>
Example 2: open bootstrap modal with javascript
$("#myModal").modal()
Example 3: how to show bootstrap modal
<script>
var myModal = new bootstrap.Modal(document.getElementById('ModalID'))
myModal.show()
</script>