Effect:
Let's take a look at how other websites do it:
Google.com Logon: both the client and server have been verified, and the message is the same.
Logon to baidu.com: the password input box is blocked.
Http://fanfou.com/register: the client and the background are verified, but the prompt information is not the same way
Http://login.xiaonei.com/Login.do: User prompts after disabling Js
My implementation steps:
Thoughts:
1. The submit button is not displayed by default (JavaScript is disabled). If it is enabled, the submit button is displayed.
2. display the prompt information through <noscript> ............ </noscript>.
Code:
Copy codeThe Code is as follows:
<Noscript>
<Div style = "color: red"> your browser does not support javascript and some functions cannot be used </div>
</Noscript>
<Div id = "js_support" style = "display: none">
<P id = "pSubmit"> <input type = "submit" name = "registerform" value = "" onclick = "return submitform (); "/> </p>
</Div>
<Script type = "text/javascript">
$ ("Js_support"). style. display = "block ";
</Script>