Solved

Which browsers support JavaScript?

Posted on 1998-12-16
9
248 Views
Last Modified: 2013-12-25
I am looking for a list of browsers that do or dont support JavaScript.  Ex.  N3-yes  IE3-yes AOL-??? ........
Please include as many browsers and versions of each as possible. Thanks,
Chris
0
Comment
Question by:ccreel
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 28

Expert Comment

by:sybe
ID: 1857291
wow, there are so many versions of browsers...

download browsercap.ini from the microsoft site, that file contains info about all kinds of browser capacities, including javascript.

If you want to distinguish on the fly you can use

<script language="javascript">
document.location = 'js_supported.htm';
<script>

0
 

Author Comment

by:ccreel
ID: 1857292
Thanks for the fast response. All I really
care about is if AOL and and a couple of
the other odd browsers will support the
following code.  Also I searched Microsoft
and could not find browsercap.ini.


<SCRIPT LANGUAGE="JavaScript">
<!--
var major, nav, ie;
var agt=navigator.userAgent.toLowerCase()
major = parseInt(navigator.appVersion)
nav=((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1)
&& (agt.indexOf('compatible') == -1)))
if (nav && (major == 2))
document.write("<img src=x.gif width=x>");
else if (nav && (major == 3))
document.write("<img src=x.gif width=x>");
else if (nav && (major == 4))
document.write("<img src=x.gif width=x>");
else if (nav && (major >= 4))
document.write("<img src=x.gif width=x>");
ie=(agt.indexOf("msie") != -1)
if (ie && (major == 2))
document.write("<img src=x.gif width=x>");
else if (ie && (major == 4))
document.write("<img src=x.gif width=x>");
else if (ie && (major >= 4))
document.write("<img src=x.gif width=x>");
else if (agt.indexOf("opera") != -1)
document.write("<img src=x.gif width=x>");
// -->
</SCRIPT>
0
 

Author Comment

by:ccreel
ID: 1857293
If a browser that does not support JavaScript hits my page, they will not get the images at all.  This is because the JavaScript is determining which image to display.  My solution for this is to find out if there are any browsers that do not support this code, and if there are, what to do.
0
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 

Expert Comment

by:Argus
ID: 1857294
You could create two links on the main page, one with Java and one without Java.  Then you would have to duplicate the page/site into pages without the Java.

IMHO, I really wouldn't worry about the relatively small number of people out there without Java-enabled browsers.  I have the feeling you are creating a business site from your desire to support both types of browsers.  I don't think it would be cost affective to spend much time and energy trying to do much work on supporting non-Java browsers.
0
 

Author Comment

by:ccreel
ID: 1857295
Thanks for the help.  Please submit an answer so I can close this one out.
0
 

Accepted Solution

by:
Argus earned 50 total points
ID: 1857296
You mean something like this?

You could create two links on the main page, one with Java and one without Java.  Then you would have to duplicate the page/site into pages without the Java.

IMHO, I really wouldn't worry about the relatively small number of people out there without
Java-enabled browsers.  I have the feeling you are creating a business site from your desire to support both types of browsers.  I don't think it would be cost affective to spend much time and energy trying to do much work on supporting non-Java browsers.
0
 
LVL 2

Expert Comment

by:jedimike
ID: 1857297
AOL uses a version of IE.....
but that will change soon....will be netscape sooner or later
0
 

Author Comment

by:ccreel
ID: 1857298
JediMike,
Thanks for the comment.
That is something that I was looking for.

Thanks for all the speedy responses.
Chris
0
 
LVL 28

Expert Comment

by:sybe
ID: 1857299
There is a javascript detection to what you want:

<script>
if (document.images) {
  // browser supports images object, redirect to "enhanced" page
  document.location = 'enhanced.htm';  
}
</script>
0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read about why website design really matters in today's demanding market.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
This video teaches users how to migrate an existing Wordpress website to a new domain.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question