इस कोड काम नहीं करता:लागू document.write()
<div class="pix"><div id="addTimestamp"></div></div>
<script type="text/javascript">
(function() {
var date = new Date(),
timestamp = date.getTime(),
newScript = document.createElement("script");
newScript.type = 'text/javascript';
newScript.src = 'someUrl=' + timestamp + '?';
document.getElementById('addTimestamp').appendChild(newScript);
}())
</script>
गतिशील स्क्रिप्ट document.write(someCode which loads banners)
कहते हैं। लेकिन Firebug में मैं एक त्रुटि है:
Invoking document.write() from asynchronously-loaded external script was ignored.
आपको जवाबों में से एक को – rmflow