We are using jQuery thickbox to dynamically display an iframe when someone clicks on a picture. In this iframe, we are using galleria a javascript library to display multip
Basically what others have already posted but IMHO a bit cleaner:
$('', { src: 'https://example.com/', load: function() { alert("loaded") } }).appendTo('body');