We give out a piece of javascript tags such as which site owners put on their site like http://exa
The problem with loading a script on a already loaded document (instead of having the browser ignore the document.write()
) is that you would delete all existent HTML. See this example so you can understand exactly what's happening, or for more details look at a documentation page for the document.write() method.
While I know this might not be what you're expecting to get as an answer, I believe you are out of luck since rewriting the script is not an option.
This appears to be a similar question with similar replies.