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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With