[thelist] detecting opera

Henning Poerschke hp at webmediaconception.com
Thu Aug 23 04:20:09 CDT 2001


At 06:12 23.08.01, Marc wrote:

>Is there a way to detect Opera when it's masquerading as some other browser?
>
>thanks.
>-marc


Opera 5.12 win masquerading as either IE or NS apparently changes 
navigator.appName but leaves a mention of Opera in navigator.userAgent.

I'm therefore using navigator.userAgent.indexOf('Opera') to check for Opera.

I don't know about any other versions or platforms, though.

HTH
.henning






More information about the thelist mailing list