This class can be used to check whether Javascript is enabled in the browser.
It can generate a HTML form with Javascript to automatically submit it when the page is load.
The class can set cookies or session variables to avoid the need to generate the form to check again if the browser has Javascript enabled.
check it out here