Unobtrusively Add NOSCRIPT Elements With JavaScript

Posted on Monday, March 17th, 2008

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.

Stunning!

If you enjoyed this post, why not subscribe to Unintentionally Blank

Comments

  1. Tim Says:

    Ha! That’s actually really funny


  2. ed Says:

    Very nice. The web is so steeped in JavaScript some people forget some things are better left to server-side languages.


  3. alex Says:

    haha. classic.


Leave a Comment