Is there any exclusive Firefox DOM property or method? Such as window.opera of Opera and window.ActiveXObject of IE.
I know of one property which looks likely to be and remain unique, but why do you think you need to detect this browser?
Okay, thank you.
Performing browser detection is the last thing you want to do, because you are guaranteeing that anything which is not Firefox but has the same problem, isn’t going to be fixed.
Also, if Firefox is updated to fix that problem, you may be trying to fix something that doesn’t need to be fixed any more, which ends up making things worse for yourself.
Instead, perform object detection where you check for the problem that needs to be fixed, and should that problem be there you can then do something about it.
What is the problem that needs to be fixed? As it is a common situation, there will be a common solution that resolves the issue for you.
Because of performance issue. Using DOM property or method is faster than doing regular expression test in navigator.userAgent.
No - I meant why do you think you need to perform any form of detection for this browser?
It is a common situation. Sometimes you want to define some functions only for Firefox.