Hey,

Is there anyone out there who could tell me how to determine whether Javascript is enabled in a users browser by using PHP or some other method?

I don't want people who have Javascript disabled in their browser to access my pages for security reasons.

I tried using the following (this code is after the Javascript which I don't want people to bypass)...

<NOSCRIPT>
<? print"Error - You don't have Javascript enabled";exit; ?>
</NOSCRIPT>

...but for some reason it prints the above even if a user does have Javascript enabled.

Is there any alternative way anyone knows?

I'd be greatful for any help on this!

Mark

    Write a Reply...