Bootstrap modal how to load http file inside

Is there a way to load the http: // located file into modal windows?

somenthing like:

<a class="btn btn-info btn-large" data-toggle="modal" href="#http://localhost/login.html"> <i class="icon-user icon-white"></i> Login </a>

Obviously, I can do this with a dedicated js method (e.g. jquery load ()), but I would like to know if it is possible to do this without implementing any new js.

+3
source share
1 answer

Do iFramewith the id and load into it login.html. Give an iFrame ID for this modal type, for example href="#iFrameId". This iFrame should be in the same HTML file as your anchor.

0
source

All Articles