JavaScript – controlling the insertion point for document.write
If you’re dealing with 3rd party scripts, simply replacing document.write to capture the output and stick it in the right place isn’t good enough, since they could change the script and then your site would break. writeCapture.js does what you need (full disclosure: I’m the author). It basically rewrites the script tags so that each … Read more