Can I create an empty iframe as a placeholder to later insert html into it?
In otherwords, suppose I have an empty iframe with an id,
How do I insert html i
Yes I know that is possible but the main problem is that we cannot handle a frame from outside it i has already loaded some other thing.
$(function() { var $frame = $(''); $('body').html( $frame ); setTimeout( function() { var doc = $frame[0].contentWindow.document; var $body = $('body',doc); $body.html('Test'); }, 1 ); });
but if we start as
<---Your Script to put as you like--->
Then its impossible to hit that out.