How to load a url inside the modal bootstrap?

1

Hello everyone, I would like to address a bit of how to load content (html) from a url into a modal bootstrap.

    
asked by anonymous 20.09.2016 / 00:25

1 answer

1

I do not know if I really understood correctly what you need, but it would be so! You can style CSS iframe to better adapt to modal!

<div class="modal fade" tabindex="-1" role="dialog">
  <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">Modal title</h4>
      </div>
      <div class="modal-body">
        <iframe src="http://www.google.com"></iframe></div><divclass="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
    
20.09.2016 / 02:57