0

How can I check which functions of JavaScript the browser support which I am using? It can be any browser.

BenMorel
37.1k53 gold badges208 silver badges339 bronze badges
asked Apr 7, 2010 at 12:04

2 Answers 2

4

This is what jQuery.support is for :) $.support provides a feature list, that different browsers may or may not support, and if you're using something that is inconsistent, this will help.

$.browser was the old way, which tells you which browser you're on, but don't use this to detect features. By using $.browser and saying, well this is IE8 it can't do that...that may change via an update tomorrow, that's why feature detection is a much better way to go, which $.support assists with.

answered Apr 7, 2010 at 12:07
Sign up to request clarification or add additional context in comments.

Comments

2

You don't :)

The whole point of using a Javascript library like jQquery is to avoid the necessity for doing this. They provide an abstraction layer that hides the specific implementation of Javascript across browsers, as well as providing many methods allowing you to use much less code than you would to do the same thing in standard Javascript.

answered Apr 7, 2010 at 12:05

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.