哪些Web浏览器不支持Javascript?以及如何识别浏览器客户端使用? [英] What web browsers do not support Javascript? and how to identify which browser is client using?

查看:347
本文介绍了哪些Web浏览器不支持Javascript?以及如何识别浏览器客户端使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在那里,不支持JavaScript的网页浏览器?以及如何识别,如果客户使用这些浏览器中的一个?或客户端已禁用JavaScript的?


解决方案

  

在那里,不支持JavaScript的网页浏览器?


当然。 山猫就是一个例子。


  

,以及如何在客户端使用这些浏览器中的一个来确定?


使用< NOSCRIPT方式> 标签来提供替代内容


  

或客户端已禁用了JavaScript?


同样的答案为previous:使用< NOSCRIPT> 标签

如果用户正在使用的X或Y的浏览器你不应该测试。始终执行特征检测。步骤一:使用< NOSCRIPT> 对于那些不支持javascript客户提供备用内容。然后测试客户端是否支持您想使用的功能。从来没有测试,如果IE8或FF3或别的东西,...

Modernizr的是它可以帮助您与此一个很好的框架。所以,如果你想使用一些新的很酷的HTML5功能,不测试,如果浏览器是某某版本:浏览器是否支持您想使用的功能测试

are there any web browsers that do not support javascript? and how to identify if client is using one of those browsers? or client has disabled javascript?

解决方案

are there any web browsers that do not support javascript?

Of course. Lynx is just one example.

and how to identify if client is using one of those browsers?

Using the <noscript> tag to provide alternate content.

or client has disabled javascript?

Same answer as previous : using the <noscript> tag.

You should never test if a client is using X or Y browser. Always perform feature detection. Step one: use <noscript> for providing alternate content to clients that do not support javascript. Then test whether the client supports the feature you would like to use. Never test if IE8 or FF3 or something else, ...

Modernizr is an excellent framework which could aid you with this. So if you want to use some of the new cool HTML5 features, don't test if the browser is such and such version: test if the browser supports the feature you would like to use.

这篇关于哪些Web浏览器不支持Javascript?以及如何识别浏览器客户端使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆