Home  >  Article  >  Web Front-end  >  Clear the code to prevent js code from viewing the source code_javascript tips

Clear the code to prevent js code from viewing the source code_javascript tips

WBOY
WBOYOriginal
2016-05-16 19:11:141129browse

This method is considered to be the best method currently published on the Internet to prevent viewing the source code. Of course, it depends on the method, such as entering "javascript:alert(document.documentElement.outerHTML);" in the address bar.


[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]
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