473,756 Members | 3,686 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2576
tr****@gmail.co m 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.co m 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.co m 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.javas cript 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.co m 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.navigato r and window.plugins (or
document.plugin s ? - 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.c om/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 "DigitallyE xt". I still
think that by its hidden expressive power it stays in one row (if not
above) with the "Trespasser s 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
12073
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> The php file then echo'ing the source code. If that works then how can I stop the php file being loaded directly, that is the user browsing
10
2110
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 display correctly. The page is readable without the CSS though the formatting is not pretty, but browsers like Netscape 4.x bungle the positioning if I include the stylesheet, making it unreadable. I am using the JavaScript Browser Sniffer by Eric...
12
2039
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
5234
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 Javascript. I've seen the msdn knowledge base article on the subject http://support.microsoft.com/kb/834489/
4
3402
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 to a website? (Probably via POST) I'd imagine this is done often, so maybe I'm just missing some terminology for doing the search. It seems you'd also have to simulate cookies to do this right. Is code available?
5
3176
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 requirements. I would like to ask experts like you to see which items are actually doable with ASP.Net. Below I listed all of the items we are looking for but I can understand if some of the items are impossible to check/sniff. We would like to create a sniffer...
1
2841
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 so on with Request.Browser.Cookies). I saw some server controls that register a startup script on the page_load and then perform a postback and run the javascript,changing a hidden
5
1152
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 be greatly appreciated. Check out the example below in both browsers to see for yourself: http://216.122.147.105/ie7error.html NOTE: The above JavaScript functions properly in Netscape 8.n as well.
4
1315
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 not working ,pl correct if there is any error and send me............... <HTML> <HEAD> <SCRIPT LANGUAGE="JavaScript">
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10034
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9843
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9713
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3805
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.