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

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

c - Expected expression before 'struct' - Error -