Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript disabled best practices? [closed]

I would like to know if anyone optimizes their web pages to have some friendly behavior if the user has Javascript disabled. Are there any tricks to provide some pseudo-scripting behavior in such instances? I'm talking basic things like opening links in new windows. I would imagine there is still a lot you can do without Javascript. It could be handy in some cases to have a page that has some features it can fall back on. Are there any practices?

Edit: good answers so far! Would people mind including some sample code (come on, HTML is sooo easy!) since I don't think I've seen a question like this on SO yet.

like image 415
tkotitan Avatar asked Mar 04 '09 14:03

tkotitan


1 Answers

What I sometimes do is set the features that require Javascript to not display, then use Javascript to make them display. That way people with out Javascript wont see features they can't use. And then put alternative features in <noscript> tags.

like image 188
JD Isaacks Avatar answered Oct 07 '22 18:10

JD Isaacks