Forum : How to detect whether JavaScript support has been disabled?
Brief description  about Online courses   join in Online courses
View Balu  Prasad 's Profile

How to detect whether JavaScript support has been disabled?

Sir,

Can you explain me how to detect whether JavaScript support has been disabled..
Asked by Balu Prasad | Nov 23, 2009 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi Balu,

Common sense says that if you're going to detect if JavaScript is disabled, you'd better do

it in something besides JavaScript! Check instead to see if scripting is enabled.

You might, for instance, use something like document.location = 'java_page.html' to

redirect the browser to a new, script-laden page. Failure to redirect implies that

JavaScript is unavailable, in which case you can either resort to CGI ro utines or insert

appropriate code between the <NOSCRIPT> tags. (NOTE: NOSCRIPT is only available in Netscape

Navigator 3.0 and up.)
Nov 23, 2009