Solved

Which browsers support JavaScript?

Posted on 1998-12-16
9
264 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Understanding Linux Permissions

Linux for beginners: How to view the permissions associated with files and directories and also how you can change them.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

617 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