Unintentionally Blank

Phil Nash on the Internet, Web Standards and Accessibility

Unobtrusively Add NOSCRIPT Elements With JavaScript

Mar 17, 2008

by Phil Nash

I had a giggle this weekend thanks to a Christian Heilemann tweet. Using a JavaScript document.write to print out a <noscript> element is beyond believable. The whole thing is its own paradox, document.write wll only fire if JavaScript is enabled and <noscript> can only be seen when JavaScript is disabled, the fact that the ad script that was responsible for the script also left the tag open and messed up the rest of the site only compounds the whole thing.


Unintentionally Blank is Phil Nash's thoughts on web development from 2006-2008. Any code or opinions may be out of date.