How to load a url inside the modal bootstrap?

Asked

Viewed 405 times

1

Hello folks would like to address a bit how to load content (html) from a url into a modal bootstrap.

1 answer

1

I don’t know if I really understood what you need, but it would be like this! You can style with CSS iframe to better adapt to the 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>
      <div class="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 -->

Browser other questions tagged

You are not signed in. Login or sign up in order to post.