• support@answerspoint.com

Load Bootstrap modal on page load without Use any button.


I have no Idea how to call Modal on a page load. But I can successfully call the Modal on an Button click, but I want it to on a page load.



You can Easly page load inside a jQuery load event on the head section of your document and it should popup:


    <script type="text/javascript">
        <div class="modal fade" id="myModal">
            <div class="modal-header">
                <a class="close" data-dismiss="modal">×</a>
                <h3>Modal header</h3>
            <div class="modal-body">
                 <p>This is Body Part</p>
            <div class="modal-footer">
                <a href="#" class="btn">Close</a>


  • answered 5 years ago
  • Community  wiki

Your Answer

    Facebook Share        
  • asked 5 years ago
  • viewed 1831 times
  • active 5 years ago

Best Rated Questions