Re: HOWTO Question: JavaScrip detection
by Andrew McFarland <aamcf(at)aamcf.co.uk>
|
Date: |
Tue, 29 Jan 2002 19:46:50 +0000 |
To: |
hwg-techniques(at)hwg.org |
In-Reply-To: |
localhost |
|
todo: View
Thread,
Original
|
|
At 19:58 29/01/02 +0100, u1067(at)plov.omega.bg wrote:
>I'm curious how could be detected this on the server side?
The most obvious thing would be to use code like this in a web page:
<.img src="foo.gif"/>
<.script type="text/javascript">
document.write('<.img src="bar.gif"/>')
</script>
foo.gif would be accessed by all image-enabled browsers, bar.gif would only
be accessed by image and javascript enabled browsers. Comparing the log
file entries for the two would enable you to get a ratio.
There are lots of problems with this of course. It's left as an exercise to
the reader to find some :-)
Andrew
--
http://aamcf.co.uk/
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA