Hello everyone, I would like to address a bit of how to load content (html) from a url into a modal bootstrap.
Hello everyone, I would like to address a bit of how to load content (html) from a url into a modal bootstrap.
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">×</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 -->