bootstrap show modal on page load

JavaScript
<script type="text/javascript">
    $(window).on('load',function(){
        $('#myModal').modal('show');
    });
</script>

Source

Also in JavaScript: