Give browser-deprecator a hash of browsers to check for (with minimum version numbers) and a callback for when the visitor's browser does not meet the criteria.
Screenshot:
Example usage (this will require MSIE >= version 7, Firefox >= version 3.6.6, and will deprecate any version of Opera):
$(function() {
$.deprecate({
msie: '7',
mozilla: '3.6.6',
opera: false
});
});
Custom callback example:
function on_deprecated() {
alert("Your browser is not supported!");
}
$(function() {
$.deprecate({
msie: '7',
mozilla: '3.6.6',
opera: false
}, on_deprecated);
});