To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
hi friends
how to recognize mozilla firefox browser do u know in javascript one of my application works in mozilla but not displaying properly with boxes in firefox
Location: Rapid Offensive Unit "Foreign Object Damage"
Posts: 19,137
Look to see if the useragent contains the word "Firefox".
Kind of depends on how you're checking for Mozilla (apparently not through checking client capabilities, which is the best practice method).
__________________
On two occasions I have been asked [by Members of Parliament], "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
Don't use browser detection - simply write your Javascript correctly in the first place.
Of course one reason you mustn't use browser detection is that sometimes it's ineffective (user agent blocked), or actually inaccurate (sometimes browsers lie).
But the main reason you mustn't use browser detection, is that that won't help people who use web browsers other than the ones you've tested it with (for example, ones which haven't been released yet).
If you absolutely MUST (for example, when handling events using MSIE's dodgy event model), then use feature-detection in the Javascript code. But most of the time, simply using the standard way of doing things (DOM1 etc) works well.