1

How can i detect that the browser is Safari 5 or higher?

7
  • 2
    What are you really trying to do? Commented Nov 19, 2010 at 18:03
  • @meder: You think OP's up to something nefarious? Commented Nov 19, 2010 at 18:06
  • 1
    No, something fundamentally flawed. quirksmode.org/js/support.html Commented Nov 19, 2010 at 18:20
  • something does not work unless safari 5 and up, so i want to exclude anything other than that.... Commented Nov 19, 2010 at 18:22
  • Why don't you simply look whether the browser is able to do what you want it to do? Commented Nov 19, 2010 at 18:31

2 Answers 2

1

I think you want to know if Safari is v5 or higher because of some feature.

In this case you can use also http://api.jquery.com/jQuery.support/

Sign up to request clarification or add additional context in comments.

1 Comment

see inside the jquery code and take what you think is useful. see also perfectionkills.com/…
0

Here's a good article on this topic:

http://www.quirksmode.org/js/detect.html

A bit more involved and with more code than maybe you are looking for, but it should certinaly help!

1 Comment

Fails on Opera 10.63. Tells me I'm running v9.8.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.