I tried to redefine the document.ready
function to capture what should have been written after document.ready
$(document).ready(function(){
document.write = function(html){
//... do something with HTML
};
});
I do have the HTML now which should be rendered, but I don't know where it should belong to.
Is there a way to find out which script called the document.write
function (in order to place the HTML code in the right place)?