Home >Web Front-end >JS Tutorial >Summary of JavaScript methods to verify whether the browser supports JavaScript_javascript skills

Summary of JavaScript methods to verify whether the browser supports JavaScript_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 18:53:021313browse

Effect:
image
Let’s first take a look at how other websites do it:
Google.com login: Both the client and server are verified, and a message is prompted The same
baidu.com login: the password input box is blocked
http://fanfou.com/register: both the client and the background are verified, but the information prompts are different
http:/ /login.xiaonei.com/Login.do: There is a prompt message after the user disables JS
My implementation steps:
Thoughts:
1, by default (js is disabled) the submit button is not displayed, if it is enabled After that, the submit button
2 is displayed, and the prompt information is displayed through
Code:

Copy code The code is as follows:



> ;
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn