473,395 Members | 1,530 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,395 software developers and data experts.

Detect browser version in javascript

Hi,

I'm trying to use javascript to detect the version of internet explorer
before running an active x control. I'm after the full version number
(eg not just IE6 but 6.0.2800.1106). Is there any way of getting this
using javascript?

If not, can anybody suggest how i could go about getting it?

many thanks in advance,

andy

Jul 23 '05 #1
5 3432
As far as I know, no. Since what you are looking for is an IE browser,
you might want to use JScript or VBScript if they are capable of
detecting the browser's minor version (note that other browsers, such
as FireFox and Netscape, will ignore JScript and VBScript scripts).

Jul 23 '05 #2
On 31/05/2005 11:47, Ian Leow wrote:
(note that other browsers, such as FireFox and Netscape, will ignore
JScript and VBScript scripts).


When properly identified, a user agent should ignore a language it
doesn't understand. However, JScript is merely another implementation of
ECMAScript, like Mozilla's JavaScript, and many other implementations.

Other user agents may ignore Microsoft-specific extensions like
conditional comments, but not the basic language itself.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #3
Andy wrote:
Hi,

I'm trying to use javascript to detect the version of internet explorer
before running an active x control. I'm after the full version number
(eg not just IE6 but 6.0.2800.1106). Is there any way of getting this
using javascript?
No.
If not, can anybody suggest how i could go about getting it?


var IEVerNumber = prompt('What revision IE do you have?','Click
Help>About Internet Explorer and it will show it to you')

Meaning, you ask the user. Or, you have the ActiveX Control determine
whether it can execute what it wants to or not.

What exactly are you trying to do?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #4
Ian Leow wrote:
As far as I know, no. Since what you are looking for is an IE browser,
you might want to use JScript or VBScript if they are capable of
detecting the browser's minor version.


JScript and Javascript, in IE, are synonymous.

for (i in navigator){
document.write(i + ' = ' + navigator[i] + '<br>');
}

Will show you the information that is available from the navigator
object and the Revision Number is not one of them.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #5
Andy wrote:
I'm trying to use javascript to detect the version of internet explorer
before running an active x control. I'm after the full version number
(eg not just IE6 but 6.0.2800.1106). Is there any way of getting this
using javascript?
No. The HTTP-User-Agent header and so the `userAgent' property of the
object referred to by the global proprietary `navigator' property can
be forged.
If not, can anybody suggest how i could go about getting it?


Since it more depends on the ActiveX version installed instead of the UA
version (note that Netscape 4+ supports ActiveX as well), it would be more
reasonable to cure the illness instead of the symptoms. Why not check for
the ActiveX support and version and handle missing support accordingly?
PointedEars
Jul 23 '05 #6

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

Similar topics

1
by: Chris | last post by:
I want to detect the version of the JVM that is being used by the browser, for both IE & Firefox (and maybe also Opera & Safari if possilbe). I have searched around the web for such a program,...
7
by: Szar | last post by:
JS noob. I've seen plenty of browser detection scripts but they all seem to be slightly different and don't really fit my needs. I have various places where if the browser is IE I'd like to display...
2
by: Yurij Nykon | last post by:
Hi all. How can I detect the version of Flash-Plugin installed in Internet Explorer? In Netscape i can do this with following java script navigator.plugins.description But it doesn't works...
7
by: adnanx82 | last post by:
Hi, Does anyone know how a script can detect whether exception handling using try/catch blocks is supported in the browser, so that it can use them to perform better error handling, and a syntax...
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...
9
by: Rich | last post by:
Please help. Looking for a script to detect and display what version of Windows a user is running. Thanks in advance. Rich
8
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I detect Opera/Netscape/IE? ----------------------------------------------------------------------- The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...

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.