"Onload Delayed Modal"
Bootstrap 3.2.0 Snippet by PersianGulf

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <h2>Bootstrap Onload Delayed Modal</h2><br/> </div> </div> <center><button class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-lg">Just wait 5 seconds or View Now!</button> </center> <div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" id="PersianGulf-Modal"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title"><i class="fa fa-exclamation-circle"></i>Your title</h4> </div> <div class="modal-body"> Persian Gulf forever </div> <div class="modal-footer"> <button type="button" class="btn btn-primary" data-dismiss="modal">Its True!</button> </div> </div> </div> </div>
$(window).load(function(){ setTimeout(function() { $('#PersianGulf-Modal').modal('show');},5000); });

Related: See More


Questions / Comments: