That's not going to work, there is no way to know server side if JavaScript is available client side. Unless you always assume no JavaScript on the first landing and then use JavaScript to set a cookie that PHP looks for on subsequent requests. And I suppose that you could have a JavaScript reload after that cookie is set. Not very elegant and a wee bit slow. Better to make good use of the NOSCRIPT element and make sure that everything is there on the page somewhere.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Bookmarks