如何使用javascript来确定opera浏览器 [英] how to determine the opera browser using javascript
本文介绍了如何使用javascript来确定opera浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要确定客户端的浏览器在歌剧中是否使用javascript。
I want to determine that the browser of the client machines in opera or not using javascript.
推荐答案
$ c> navigator 对象包含您需要的所有信息。这应该:
The navigator
object contains all the info you need. This should do:
navigator.userAgent.indexOf("Opera");
这篇关于如何使用javascript来确定opera浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文