如何在我的网页中使用Noscript以及什么是我们可以在无脚本中使用的标签 [英] How Do I Use Noscript In My Web Page And What Are Tags We Can Use In No Script

查看:83
本文介绍了如何在我的网页中使用Noscript以及什么是我们可以在无脚本中使用的标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



在我的网页登录界面中,我正在使用< noscript> tagfor,如果在浏览器中禁用了javascript,



但我在那里显示一个div,这是你的浏览器不支持javascript所以启用它。比如,



Hi all,

In my web page login screen ,i am using <noscript> tagfor, if javascript disabled in browser,

but i showing one div there that is your browser does'nt support javascript so enabled it . like,

<noscript>
<div class="grid-100 tablet-grid-100 alert">
  Your browser does not support JavaScript! Please update your
            browser or turn on JavaScript.</div>
            </noscript>







但是我应该限制文本框控制为禁用orelse我必须显示我的消息div而不是主div。



给我一些样品请

提前致谢,

Vels Ananth




but i should restrict the textbox controls as disabled orelse i have to show my message div instead of main div.

give me some sample please
Thanks in advance,
Vels Ananth

推荐答案

您应该以不使用 JavaScript 的方式构建应用程序。理想情况下, JavaScript 应该用于验证。



但是你应该在客户端和服务器端验证数据,这样你就可以发出警告任何问题的用户。不要因为 JavaScript 被禁用而隐藏用户的任何内容,而是尝试在任何一种情况下都聪明。
You should build the application in such a way that it should work without JavaScript. Ideally, JavaScript should be used for validations.

But you should validate the data both at client and server side, so that you can warn users of any issue. Don't hide anything from user just because JavaScript is disabled, but try to be smart on either case.


这篇关于如何在我的网页中使用Noscript以及什么是我们可以在无脚本中使用的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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