The Evils of document.write

As a developer who works on a site where users can paste in all manner of crappy code from all corners of the web, I’m here to beg. Please, for the love of all that is holy, it’s time to stop using document.write. Yes, I know that it’s being used in the header and footer on AIM Pages, but we own that page (and we’re not going to be doing it for long). Your code has to live all over the web, if say, you’re the Flickr badge. There are so many other, better, ways to do the same thing, there’s no reason to use document.write.
It’s old and evil, a lot like Dick Cheney. Yes, it will shoot your friend in the face and sneer all the time. You don’t want to code like Dick Cheney, do you?

Leave a Reply