yogesh - 6:11 am on Dec 29, 2011 (gmt 0)
Hello penders, Thanks for replying.
If I understand correctly, document should get overwritten with new content if document.write was called after onload. This however, does not happen and I can't figure out why this is the case.
I have following div where I expected it to get written.
<!-- Myscipt has the jsonp code and callback function listed above -->
I am writing the iframe in following manner.
var iframe = document.createElement("iframe");
/*I do not want to append to body though. I want to append to div */
var doc = iframe.document;
doc = iframe.contentDocument; // For NS6
doc = iframe.contentWindow.document; // For IE5.5 and IE6