Home >Web Front-end >JS Tutorial >js prohibits selection of function implementation code (compatible with IE/Firefox)_javascript skills

js prohibits selection of function implementation code (compatible with IE/Firefox)_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:28:541163browse
ie, Chrome may use JS's onselectstart
For example,
Copy the code The code is as follows:



firefox can pass CSS
Copy code The code is as follows:

 *{
-moz-user-select:none
}
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