/ Published in: JavaScript
Detects JavaScript and switches class.
From an example given by Paul Irish
Expand |
Embed | Plain Text
// HTML <html class="no-js">…<html> // JS (function(H,C){H[C]=H[C].replace(/\bno-js\b/, 'js')}) (document.documentElement, 'className')
You need to login to post a comment.
