Load only HTML in IFRAME
There is no cross browser way to do this. Some browsers provide events that fire when the DOM is loaded, such as DOMContentLoaded for Gecko.
jQuery implements this feature . I suggest you use jQuery for this:
$(document).ready(function () {
// Function is called when the DOM is loaded.
});
Or check how jQuery implements it. See Function bindReady
in the jQuery source code .
a source to share
The short answer is "you can't."
Internet Explorer supports the propriatry attribute, which can prevent a script from executing , but it is not cross-browser and does not handle with images or stylesheets.
Several JS libraries implement a custom event that fires when the DOM is ready , but browsers load resources in parallel, so while an event may fire before all images and stylesheets have loaded, it is unlikely that they fire before other elements start loading ...
If you really want the page to load without these things, then process it on the server to cut out the HTML that includes them.
a source to share