Hi,

I want to apply a different style to my site if javascript is disabled to the user experience is unaltered.

I'm using PHP so is there a method i could employ? - i know there isn't a specific javascript detection function within php itself.

i would just put a noscript tag in the <head> but that doesn't validate so might be unstable

Any help would be greatly appreciated.

Thanks

Recommended Answers

All 2 Replies


Use JavaScript to apply the JavaScript stylesheet.

Don't use javascript
if css works use css effects and remove the javascript entirely
javascript is problematic at best

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.