Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- How can I add a style declaration in an external .js file.


ronin - 1:13 pm on Oct 19, 2010 (gmt 0)


Oh and I ought to add, for the sake of reference, that the way I implemented method 3) was simply by adding the following line to the end of the collapse .js :

document.getElementsByTagName('body')[0].className = 'jsEnabled';*

*Credit to Rodrigo and his article: Adding hasJS Class When JavaScript Is Available


Thread source:: http://www.webmasterworld.com/javascript/4217734.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com