Here I just experienced to check whether js is enabled or not. In our example, I use two html files to check it.
Our index.html is the default file, which requires js to perform several operations, so add a simple html coding to check whether js enabled, If its enabled stay on the page, else redirect to no-js.html and code for index.html
<html> <head> <title> Check whether js enabled or not- Kvcodes </title> <noscript><meta http-equiv="refresh" content="1;url=no-js.html"></noscript> ..... here your index codings go on.
Than, the idex.html will redirect the user to no-js.html page, if they disabled the js. now open your no-js.html file to check if the user re- enable js than redirect to index.htl page.
Thats, it, it will work on IE(8,9,10) , Chrome, Firefox, and Opera.