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
Post a Comment