Monday, June 3, 2024
183
rated 0 times [  186] [ 3]  / answers: 1 / hits: 25501  / 15 Years ago, mon, january 4, 2010, 12:00:00

I want to determine whether the browser of the client machines is Opera using JavaScript, how to do that?


More From » cross-browser

 Answers
11

The navigator object contains all the info you need. This should do:



navigator.userAgent.indexOf(Opera);

[#97931] Wednesday, December 30, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kalynn

Total Points: 309
Total Questions: 105
Total Answers: 90

Location: Azerbaijan
Member since Fri, May 12, 2023
1 Year ago
;