Page 1 of 1
Forum

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!



JavaScript - Catch ...
 
Share:
Notifications
Clear all

[Solved] JavaScript - Catch if JavaScript is disabled

1 Posts
1 Users
0 Reactions
1,839 Views
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2934
Topic starter  

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>

   
ReplyQuote
Share: