473,320 Members | 1,794 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Javascript Browser Sniffer

I am looking for a script using javascript to pull browser information
including, browser type and version, OS info, plugins (flash, acrobat,
media player, etc), java version, etc. that will work on IE/Firefox. I
am looking for detalis similar to what is available at:
http://www.webreference.com/tools/br...owserhawk.html

Thanks!

Apr 11 '06 #1
4 2532
tr****@gmail.com wrote:
I am looking for a script using javascript to pull browser information
including, browser type and version, OS info, plugins (flash, acrobat,
media player, etc), java version, etc. that will work on IE/Firefox. I
am looking for detalis similar to what is available at:
http://www.webreference.com/tools/br...owserhawk.html


Please read <URL:http://pointedears.de/scripts/test/whatami>, then answer
this question: Why?
PointedEars
Apr 11 '06 #2
tr****@gmail.com wrote:
I am looking for a script using javascript to pull browser
information including, browser type and version, OS info,
plugins (flash, acrobat, media player, etc), java version,
etc. that will work on IE/Firefox. I am looking for detalis
similar to what is available at:
http://www.webreference.com/tools/br...owserhawk.html


You mean you want inaccurate information based upon false assumptions
and superficial testing? You don't need a script for that, just assume
that all browsers are IE running on Windows and have flash, acrobat and
media player installed and you won't be wrong significantly more often
than you example. ;)

Richard.
Apr 11 '06 #3
tr****@gmail.com wrote :
I am looking for a script using javascript to pull browser information
including, browser type and version, OS info, plugins (flash, acrobat,
media player, etc), java version, etc. that will work on IE/Firefox. I
am looking for detalis similar to what is available at:
http://www.webreference.com/tools/br...owserhawk.html

Thanks!


I'd be very surprised if you would need so many info to begin with. In
99% of the time, a web author with an avg. or even big website only
needs to detect object feature support and/or object capability support
for his scripts. That approach is more reliable, useful and future-proof.

References:

Object detection:
http://developer.apple.com/internet/...detection.html

Browser detection (and what to do instead)
http://www.jibbering.com/faq/faq_not...er_detect.html

Comp.lang.javascript FAQ
4.26 How do I detect Opera/Netscape/IE?
http://jibbering.com/faq/#FAQ4_26
Developing Cross Browser/Cross Platform Pages
* Browser identification approach (aka "browser sniffing"): not best,
not reliable approach
* Using Object/Feature detection approach: best and overall most reliable
http://www.mozilla.org/docs/web-deve...evCrossBrowser

For detection of flash, acrobat, media player, java version, the object
feature detection support is still the correct approach.

Gérard
--
remove blah to email me
Apr 12 '06 #4
VK
tr****@gmail.com wrote:
I am looking for a script using javascript to pull browser information
including, browser type and version, OS info, plugins (flash, acrobat,
media player, etc), java version, etc. that will work on IE/Firefox. I
am looking for detalis similar to what is available at:
http://www.webreference.com/tools/br...owserhawk.html


Oh, BrowserHawk - that's an old buddy :-)

A good part of sniffing is made by studying window, window.screen
(where supported) window.navigator and window.plugins (or
document.plugins ? - you better check).

You just write a script to iterate through - and be aware that some
objects/properties will not be equally presented on all UA's; so
"property/object missing" fall back is required.
<http://www.jibbering.com/faq/#FAQ3_2> will give you some materials for
comparison tables.

But it is only half way: what really gives to BrowserHawk its not so
low value is their UA strings database they support and update since
1998. Grace to it they are able to extract much more info from UA
string - unless of course it is spoofed.

That is an old lasting "tradition" to have UA's string syntax close to
inscription on the wall in the subway men's room :-) A lot of info, but
to extract all of it one needs a sophisticated AI - or a huge database
to match the record.

My beloved one remains the mark in the old AOL packages (v.1 - v.5). In
their browser version the string ended up with "DigitallyExt". I still
think that by its hidden expressive power it stays in one row (if not
above) with the "Trespassers W" in front of Piglet's house. :-)

I mean - is it nice to know how many AOL users do you have? Sometimes
it may be nice. But what chance to discover the string pattern without
a database?

Apr 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Mark | last post by:
Sorry, I'm a newbie to php ;) I was thinking about using php to write the script file, something like: <script type="text/javascript" src="http://insert_url_here.com/myScript.php"></script> ...
10
by: Rob Fentress | last post by:
I am trying to develop very standards-compliant content using XHTML and CSS. I am using CSS positioning and thus need to only include my stylesheet on browsers I have tested to make sure they...
12
by: AMC | last post by:
Hi, I need to code an asp based browser sniffer. It needs to detect if a browser can support css and if not redirect to a different site. Does anyone have sample code that does this? thx
7
by: Dave | last post by:
A microsoft security patch disabled URLs of the format http://username:password@somesite.com/someresource There are programmatic ways to get around this but I can't find an example in...
4
by: _max_ | last post by:
HttpWebRequest() allows 'pseudo-browser' simulation to intercept incoming HTML for 'screen scraping', etc. But how would you do the opposite: Programmatically find out what a browser is sending...
5
by: David Baker | last post by:
Hi all I am very new to ASP.Net. I am trying to create a sniffer for our program. We want our users to click our sniffer and hopefully the sniffer will check their computer against our...
1
by: oreng | last post by:
Hey all, I have some problems detecting whether the client's browser javascript is enabled at the server side. While Request.Browser.JavaScript only check if the browser enable java script (and...
5
by: Jason | last post by:
Hi, I have some simple JavaScript on my page that worked for years in IE 6 without an error that I am aware of, but does not work in IE 7. Any insight on this issue that anyone can provide would...
4
by: davidson1 | last post by:
Hai Friends, I have a javascript program , as a snow a single picture will fall from above to below in the browser.It is worked properly when my friend was using.Sudennly it is...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.