jquery - Dynamically load a modal containing iframe on click? -


i need modal containing iframe (which complete external page) populate bootstrap modal window, problem page large don't want load until modal event fired. possible jquery/bootstrap?

yep set src attribute:

$("#youriframe").attr("src", url); 

although if possible preload iframe (as mentioned in comments) before modal clicked open reduce time user has wait.

if want clear iframe when modal closed set src attribute "about:blank".


Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

android - How to delete or change the searchview icon inside the SearchView actionBar? -

c++ - Msgpack packing bools bug -