• <legend id='tmwKC'><style id='tmwKC'><dir id='tmwKC'><q id='tmwKC'></q></dir></style></legend>
    <i id='tmwKC'><tr id='tmwKC'><dt id='tmwKC'><q id='tmwKC'><span id='tmwKC'><b id='tmwKC'><form id='tmwKC'><ins id='tmwKC'></ins><ul id='tmwKC'></ul><sub id='tmwKC'></sub></form><legend id='tmwKC'></legend><bdo id='tmwKC'><pre id='tmwKC'><center id='tmwKC'></center></pre></bdo></b><th id='tmwKC'></th></span></q></dt></tr></i><div id='tmwKC'><tfoot id='tmwKC'></tfoot><dl id='tmwKC'><fieldset id='tmwKC'></fieldset></dl></div>
    <tfoot id='tmwKC'></tfoot>

    <small id='tmwKC'></small><noframes id='tmwKC'>

        <bdo id='tmwKC'></bdo><ul id='tmwKC'></ul>
      1. 检查Javascript是否启用

        Check whether Javascript is enabled(检查Javascript是否启用)
          <bdo id='37Gqk'></bdo><ul id='37Gqk'></ul>
            <tbody id='37Gqk'></tbody>

        • <legend id='37Gqk'><style id='37Gqk'><dir id='37Gqk'><q id='37Gqk'></q></dir></style></legend>
          1. <small id='37Gqk'></small><noframes id='37Gqk'>

          2. <i id='37Gqk'><tr id='37Gqk'><dt id='37Gqk'><q id='37Gqk'><span id='37Gqk'><b id='37Gqk'><form id='37Gqk'><ins id='37Gqk'></ins><ul id='37Gqk'></ul><sub id='37Gqk'></sub></form><legend id='37Gqk'></legend><bdo id='37Gqk'><pre id='37Gqk'><center id='37Gqk'></center></pre></bdo></b><th id='37Gqk'></th></span></q></dt></tr></i><div id='37Gqk'><tfoot id='37Gqk'></tfoot><dl id='37Gqk'><fieldset id='37Gqk'></fieldset></dl></div>
            <tfoot id='37Gqk'></tfoot>
                  本文介绍了检查Javascript是否启用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有没有办法检查浏览器是否启用或支持Javascript?如果不支持,我想将用户重定向到用户友好的错误页面.

                  Is there a way to check whether Javascript is enabled or supported by the browser? If it's not supported, I would like to redirect the user to a user-friendly error page.

                  我使用 jQuery 和 PHP Zend 框架.

                  I am using jQuery and the PHP Zend Framework.

                  推荐答案

                  <noscript><meta http-equiv="refresh" content="1;url=error.html"></noscript>
                  

                  如果脚本被禁用,这将重定向到错误页面.只需将 error.html 替换为错误页面的 URL.

                  This will redirect to an error page if script is disabled. Just replace error.html with the URL of your error page.

                  这篇关于检查Javascript是否启用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Zend_Controller_Router_Exception: quot;xyzquot; is not specified(Zend_Controller_Router_Exception:“xyz;未指定)
                  Zend_Db_Table subquery(Zend_Db_Table 子查询)
                  pcntl_fork and the MySQL connection is gone(pcntl_fork 和 MySQL 连接消失了)
                  Change layout in the controller of Zend Framework 2.0(在 Zend Framework 2.0 的控制器中更改布局)
                  Zend Mail Gmail SMTP(Zend 邮件 Gmail SMTP)
                  Zend_Form: how to check 2 fields are identical(Zend_Form:如何检查 2 个字段是否相同)
                    <legend id='mAxqw'><style id='mAxqw'><dir id='mAxqw'><q id='mAxqw'></q></dir></style></legend>
                    <tfoot id='mAxqw'></tfoot>
                  • <small id='mAxqw'></small><noframes id='mAxqw'>

                      <i id='mAxqw'><tr id='mAxqw'><dt id='mAxqw'><q id='mAxqw'><span id='mAxqw'><b id='mAxqw'><form id='mAxqw'><ins id='mAxqw'></ins><ul id='mAxqw'></ul><sub id='mAxqw'></sub></form><legend id='mAxqw'></legend><bdo id='mAxqw'><pre id='mAxqw'><center id='mAxqw'></center></pre></bdo></b><th id='mAxqw'></th></span></q></dt></tr></i><div id='mAxqw'><tfoot id='mAxqw'></tfoot><dl id='mAxqw'><fieldset id='mAxqw'></fieldset></dl></div>

                        <tbody id='mAxqw'></tbody>
                        <bdo id='mAxqw'></bdo><ul id='mAxqw'></ul>