How can i detect that the browser is Safari 5 or higher?
-
2What are you really trying to do?meder omuraliev– meder omuraliev2010-11-19 18:03:04 +00:00Commented Nov 19, 2010 at 18:03
-
@meder: You think OP's up to something nefarious?FrustratedWithFormsDesigner– FrustratedWithFormsDesigner2010-11-19 18:06:32 +00:00Commented Nov 19, 2010 at 18:06
-
1No, something fundamentally flawed. quirksmode.org/js/support.htmlQuentin– Quentin2010-11-19 18:20:25 +00:00Commented Nov 19, 2010 at 18:20
-
something does not work unless safari 5 and up, so i want to exclude anything other than that....timeitquery– timeitquery2010-11-19 18:22:07 +00:00Commented 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?thejh– thejh2010-11-19 18:31:18 +00:00Commented Nov 19, 2010 at 18:31
|
Show 2 more comments
2 Answers
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/
1 Comment
riotera
see inside the jquery code and take what you think is useful. see also perfectionkills.com/…
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
DanMan
Fails on Opera 10.63. Tells me I'm running v9.8.