isFireFox using jQuery $.support method

In the previous post I was using jQuery’s $.browser method that has been depreciated. I went ahead and added a function to simulate FireFox detection.

1
2
3
4
5
6
7
8
9
isFireFox = function() {
    var count = 0;
 
    $.each($.support, function(key,value) {
    	if (value) count = count + 1;
    });
 
    return (count >= 11) ? true : false;
}

Tagged with:
 

Leave a Reply

You must be logged in to post a comment.