English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-09-01 12:30:22 · 3 answers · asked by Rockstar 6 in Computers & Internet Programming & Design

in fact, what is the name of each browser to use in script?

Internet Explorer
Mozilla FireFox and FireBird
Opera
Netscape
Safari

2006-09-01 12:32:59 · update #1

3 answers

Actually Safari 2's css support isn't too bad -- certainly nothing along the lines of IE 5 - 6. What kinds of css issues are you having with it?

You could use something like this to detect Safari:

function platformDetect()

{

if(navigator.appVersion.indexOf("Win") != -1)

{

alert("Windows");

}

else if(navigator.appVersion.indexOf("Mac") != -1)

{

alert("Macintosh");

}

else alert("Other");

}

Strings for browsers are as follows:

opera 5 and 6 - "opera5"
opera 7 - "opera7"
internet explorer 5 - "ie5"
internet explorer 5.5 - "ie5.5"
internet explorer 6 - "ie6"
firefox - "mozilla"
safari 1 - "safari1"

not sure what safari 2 is but i'm guessing it's probably "safari2":)

2006-09-02 18:05:12 · answer #1 · answered by achtungbaby 3 · 0 0

I don't remember how to detect Safari using javascript for certain, but an identifier will be found in the browser variable. I deal with Safari style sheet issues all the time, and the most important thing I have learned is to specify everything and making everything as close to HTML standard as possible (preferably XHTML strict). There are still a few flukes, but most of them can be ignored as most people who use Safari are used to it.

2006-09-01 21:06:59 · answer #2 · answered by John J 6 · 0 0

I'm not good with technichal terms,

But I find that the Mozilla program "Camino" (though it's designed especially for macs), is just about the worst you can do. I balance between Firefox and Safari for my browsing.

2006-09-01 19:37:07 · answer #3 · answered by KLD it. 4 · 0 1

fedest.com, questions and answers