modal on window load code example
Example 1: bootstrap show modal on page load
<script type="text/javascript">
$(window).on('load',function(){
$('#myModal').modal('show');
});
</script>
Example 2: call function on modal open
$('#myModal').on('shown.bs.modal', function (e) {
// do something...
})