Check safari.

D

Defacta

Hello,

How can I test in javascript the browser visiting the page is Safari.
To know if it's IE I do:

if(document.all) {
....
}

Thanks,
Vincent.
 
H

Henry

Hello,

How can I test in javascript the browser visiting the page is
Safari. To know if it's IE I do:

if(document.all) {
....
}

When you do that the result is not that you know the browser to be IE,
only that you make the mistake of thinking that it is IE. Other
browsers that will pass your - if(document.all) - test, include
Safari, Konqueror, Opera, Netfont and IceBrowser, and there are others.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top