How can i detect that the browser is Safari 5 or higher?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
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!
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/