content logo

Bootstrap Popups:

Bootstrap 3 Modal Example

Are you looking for bootstrap to increase the beauty of your website? If your answer is yes, look at this post and use the following code on your page. This Bootstrap 3 Modal Example has a high potential and helps you attract many followers. With the help of this incredible Bootstrap Popups Code, you can change the design of your website in a short time. Plus, if you are looking for a way to increase the physical space of your page, this Simple Modal Code can be helpful.

A preview of this code is provided down below which represents the beauty and attraction of this code. As the preview shows, this HTML Modal using Bootstrap has a pure design and if you have a website with a simple theme, using this code looks like a good idea. The texts of this code are black and there is a blue button at the bottom of the writing. The text inside this field is white and you can click on it. After clicking on this button of the CSS Free Modal Code, you will face a white page with two sections about the modal. If you click on the “Close” button, you can shut this page down and turn back to the main website.

#

Bootstrap Popups Code

#

Simple Modal Code

#

HTML Modal using Bootstrap

#

CSS Free Modal Code

<!-- This script got from frontendfreecode.com -->
<h1>Hello, world!</h1>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#flipFlop">
Click Me
</button>
<div class="modal fade" id="flipFlop" tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true">
   <div class="modal-dialog" role="document">
      <div class="modal-content">
         <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
            </button>
            <h4 class="modal-title" id="modalLabel">Modal Title</h4>
         </div>
         <div class="modal-body">
            Modal content...
         </div>
         <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
         </div>
      </div>
   </div>
</div><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
$(document).ready(function(){
  $(".btn-primary").click(function(){
    //$(this).hide();
   console.log(JSON.stringify($(this)));
  });
});
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js'></script>
<script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js'></script>
<script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'></script>
</head>
<body>
<h1>Hello, world!</h1>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#flipFlop">
Click Me
</button>
<div class="modal fade" id="flipFlop" tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true">
   <div class="modal-dialog" role="document">
      <div class="modal-content">
         <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
            </button>
            <h4 class="modal-title" id="modalLabel">Modal Title</h4>
         </div>
         <div class="modal-body">
            Modal content...
         </div>
         <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
         </div>
      </div>
   </div>
</div><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>
<script>
$(document).ready(function(){
  $(".btn-primary").click(function(){
    //$(this).hide();
   console.log(JSON.stringify($(this)));
  });
});
</script>

</body>
</html>
Preview