Click to See Complete Forum and Search --> : Browser version


Webskater
10-07-2003, 06:15 AM
Could anyone tell me the code please for checking which versin of IE a user has running and - is it possible to determine which service pack?
Thanks for any help.

Charles
10-07-2003, 06:43 AM
<script type="text/javascript">
<!--
alert(navigator.appVersion);
location = 'http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/nav.html';
// -->
</script>

Webskater
10-08-2003, 08:20 AM
Thanks for your answer.
When I try this on my machine the alert contains:

4.0(compatible; MSIE 6.0; Windows NT5.0)

I realise this is telling me I am running MSIE 6.0 and the operating system is Windows 2000.
What is the significance of the 4.0? and the compatible?

What I need to say is:
If you are not using MSIE5.5 Service Pack 2 or higher - you cannot use this application. How can I do this? Thanks for any help.

Charles
10-08-2003, 12:17 PM
<p>Please note, and with apologies, that if you are not using MSIE5.5 Service Pack 2 or higher then you cannot use this application.</p>

I think that little message should do the trick. And besides, it might be helpful for people who do use MSIE5.5 Service Pack 2 or higher to know that the application will not work on all browsers and people without JavaSCript might also need to know.

Webskater
10-08-2003, 01:38 PM
What I was asking was ...
How do I tell which version of the browser they are using. I realise the code you posted shows this but how do I extract from this code which version they are using so I can tell whether I need to alert them to the fact that they cannot use the application.
Thanks again.