Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!
Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.
Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!
[Solved] JavaScript - Catch if JavaScript is disabled
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2934
Topic starter
August 26, 2013 8:35 AM
To "fix" issues around JavaScript the infamous Microsoft approach seems to apply with certain users/clients (ie. to prevent a flat tire on your car, remove the tires and you'll never have a flat one ever again). So how can we "catch" JavaScript-disabled-clients?
We can wrap a meta refresh that will direct you to a page stating that you'll need JavaScript.
JavaScript enable browsers will ignore this refresh and continue, whereas non-JavaScript browsers will follow the refresh directive.
<noscript><meta HTTP-EQUIV="refresh" CONTENT="0; url=/javascripterror.htm"></noscript>