which javascript framework can be used for all browsers
jQuery, mootools, there are plenty of them.
There is also Glow, BBC's javascript framework which works in Safari 2 and IE 5.5, other frameworks don't support all features in such old browsers.
Many of them. You would be better asking which ones do not support all browsers. Furthermore, 'all browsers' is a bit vague, do you mean 'all current versions', 'all versions for the last x years' or what exactly?
If you're talking about recent, popular, reasonably current and sensible ones, others have pointed out jQuery and Mootools. There's also Prototype, and plenty more. You will have to decide on which best fits your purpose or programming style.
jQuery, MooTools, Dojo, YUI, Prototype and more are all cross-browser compatible. Please formulate your question to something less general, such as what you want to do with the framework.
All of the frameworks are pretty much compatible with most major browsers. Take your pic yui, dojo, extjs, jslib, jQuery, mootools, prototype.
It would kind of defeat the purpose of developing a js lib if they did not work x-browser.
Cross browser JavaScript frameworks: Browser support (from what i can discover pls update in comments)
- Prototype Internet Explorer (IE) 6 +, Firefix (FF) 1+, Safari 2+, Opera (o) 9.25+, Chrome (c) 1+
- script.aculo.us IE 6 +, FF 1+, S 2+, O 9.25+, c 1+
- jQuery IE 6 +, FF 2+, S 3+, O 9+, C 1+
- Yahoo! User Interface Library IE 6 +, FF 3+, S 3+, O 9+, C unknown
- MooTools IE 6 +, FF 1.5+, S 2+, O 9+, C unknown
- Ext JS IE 6 +, FF 1+, S 2+, O 9.25, C 1+
- moo.fx
- Rico
- Qooxdoo IE 6 +, FF 1.5+, S 3+, O 9+, C 1+
- The Dojo Toolkit IE 6 +, FF 2+, S 3.2+, O 9.6+, C 1+
I've used
- jQuery
- yUI
but I always go back to jQuery.
It worth pointing out that different frameworks have different strengths, so work out what you want and find the best framework for you.