<script> var myModal = new bootstrap.Modal(document.getElementById('ModalID')) myModal.show() </script>