Testing for Javascript is enabled in ASP.NET MVC

asp.net-mvc, javascript

Solution

You can use the `<noscript>` element. http://www.w3schools.com/TAGS/tag_noscript.asp. This wouldn't redirect them to another page, but you could put a link they can click on to go to another page.

Problem

I've been looking for a way to test to see if the user has Javascript enabled or a browser that supports it in ASP.NET MVC, and if they don't then route them to a page that tells them the site requires it to work. However I haven't been able to find a definative answer to this..any suggestions?

Original source