httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Octavian Rasnita" <>
Subject Re: [users@httpd] Detecting Javascript via Apache 2
Date Wed, 28 Dec 2005 05:05:46 GMT
From: <>

> Hi all.
> Is it possible for apache 2.0 to detect if a browser has
> javascript enabled when a page is requested, and then
> passing this value to PHP?
> This would allow me to serve different page content,
> depending on whether the user's browser has javascript
> enabled or not.
> Regard

It is not relevant if a page has or not Javascript enabled.
If you want to create pages that work in every browser, read and follow
World Wide Web's recommendations at

What does it mean if Javascript is enabled? It means that the browser has it
enabled, but you won't know if the user is able to use it.
Maybe the computer she uses doesn't have a mouse or the user is blind and
should use only the keyboard, so the first important thing is to create the
page that follow W3C's rules.

If you want to see if the browser has Javascript enabled, you can create a
Javascript code that GET's a page from the web server. If the page is
gotten, then the browser supports Javascript and if it is not, it means that
the code was not working so it might be disabled.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message