Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Tell user which version of IE they have?

Thread Tools
 
Search this Thread
 
Old 12 January 2004, 10:39 AM
  #1  
Avi
Scooby Regular
Thread Starter
 
Avi's Avatar
 
Join Date: Apr 2001
Location: Manchester
Posts: 5,084
Likes: 0
Received 0 Likes on 0 Posts
Question

I need to be able to tell my Intranet site users what evrsion of ie they have through a webpage, anyone suggest a simple way?

Thanks

Andy
Old 12 January 2004, 10:48 AM
  #2  
SJ_Skyline
Scooby Senior
 
SJ_Skyline's Avatar
 
Join Date: Apr 2002
Location: Limbo
Posts: 21,922
Likes: 0
Received 1 Like on 1 Post
Smile

save this in filename.asp

<%
response.Write(request.ServerVariables("HTTP_USER_ AGENT"))
%>
Old 12 January 2004, 10:53 AM
  #3  
SJ_Skyline
Scooby Senior
 
SJ_Skyline's Avatar
 
Join Date: Apr 2002
Location: Limbo
Posts: 21,922
Likes: 0
Received 1 Like on 1 Post
Smile

or....


<script language="JavaScript" type="text/javascript">
alert(window.navigator.appVersion);
</script>
Old 12 January 2004, 10:54 AM
  #4  
Avi
Scooby Regular
Thread Starter
 
Avi's Avatar
 
Join Date: Apr 2001
Location: Manchester
Posts: 5,084
Likes: 0
Received 0 Likes on 0 Posts
Post

Thanks SJ, unfortunately i work with a bunch of idiots and they wouldn't have a clue what this meant.

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Do you know of a way to make it display it something like "You have Internet explorer 5.5" and so on?

CHeers

Andy
Old 12 January 2004, 11:07 AM
  #5  
SJ_Skyline
Scooby Senior
 
SJ_Skyline's Avatar
 
Join Date: Apr 2002
Location: Limbo
Posts: 21,922
Likes: 0
Received 1 Like on 1 Post
Thumbs up

Andy,


Stolen earlier:

edited to add: stick this between <body> ---- </body>


<SCRIPT LANGUAGE="JavaScript">

var useragent = navigator.userAgent;
var bName = (useragent.indexOf('Opera') > -1) ? 'Opera' : navigator.appName;
var pos = useragent.indexOf('MSIE');

if (pos > -1)
{
bVer = useragent.substring(pos + 5);
var pos = bVer.indexOf(';');
var bVer = bVer.substring(0,pos);
}

var pos = useragent.indexOf('Opera');

if (pos > -1)
{
bVer = useragent.substring(pos + 6);
var pos = bVer.indexOf(' ');
var bVer = bVer.substring(0, pos);
}

if (bName == "Netscape")
{
var bVer = useragent.substring(8);
var pos = bVer.indexOf(' ');
var bVer = bVer.substring(0, pos);
}

if (bName == "Netscape" && parseInt(navigator.appVersion) >= 5)
{
var pos = useragent.lastIndexOf('/');
var bVer = useragent.substring(pos + 1);
}

document.writeln('<b>Browser Name: </b>' + bName + '<br>');
document.writeln('<b>Browser Version: </b>' + bVer + '<br>');

</script>



Rich

[Edited by SJ_Skyline - 1/12/2004 11:08:38 AM]
Old 12 January 2004, 11:09 AM
  #6  
Avi
Scooby Regular
Thread Starter
 
Avi's Avatar
 
Join Date: Apr 2001
Location: Manchester
Posts: 5,084
Likes: 0
Received 0 Likes on 0 Posts
Post

You da Man

Cheers
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
shorty87
Full Cars Breaking For Spares
19
22 December 2015 11:59 AM
buckerz69
Subaru Parts
7
08 October 2015 07:51 PM
Pro-Line Motorsport
Car Parts For Sale
2
29 September 2015 07:36 PM
shorty87
Wheels And Tyres For Sale
0
29 September 2015 02:18 PM
shorty87
Other Marques
0
25 September 2015 08:52 PM



Quick Reply: Tell user which version of IE they have?



All times are GMT +1. The time now is 04:15 AM.