"Window load pop up show"
Bootstrap 3.3.0 Snippet by imsachin

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="showmodal">
<div id="myModal" class="modal fade in" role="dialog" style="display: block; padding-right: 17px;">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h2 class="modal-title">Window on load popup show</h2>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-9 col-xs-9">
<p>Preview this code</p>
<h5>Toll Free 24/7</h5>
<h4>+1-000-000-0000</h4>
</div>
<div class="col-md-3 col-xs-3">
<div class="right-img">
<img src="https://image.freepik.com/free-photo/stylish-young-woman-with-bags-taking-selfie_23-2147962203.jpg" alt="demo" style="width:210px">
</div>
</div>
</div>
</div>
<div class="modal-footer">
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
/.modal-dialog{width:500px;}
.showmodal .modal-header{border-bottom: transparent;padding-bottom: 0px;}
.showmodal .modal-content{border: 10px solid #0073e6;}
.showmodal .modal-content h2{font-size:26px;font-weight: 900;color: #00355d;line-height: 33px;margin: 15px 0 15px 0;margin-bottom: 0px;margin-top:12px;}
.showmodal .modal-content .right-img{float: right;margin-top: 20px; margin-bottom: 0px;}
.showmodal .modal-content .modal-body h4{font-size: 30px;padding-top: 5px;display: block;font-weight: 900;color: #00355d;text-align: center;text-decoration: none;}
.showmodal .modal-content .modal-body h5{font-size: 28px;padding-top: 20px;display: block;font-weight: 900;color: #0073e6;text-align: center;text-decoration: none;padding-top: 50px;}
.showmodal .modal-content .modal-body p{color:#000;font-size:17px;}
.showmodal .modal-content .modal-footer{border-top: transparent;padding: 0px;}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$(window).on('load', function () {
setTimeout(function () {
$('#myModal').modal();
}, 1000);
//$('#myModal').modal('show');
});
/*Window on load Popup show using this jquery
<script>
$(window).load(function(){
$('#myModal').modal('show');
});
</script>*/
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: