Home > Article > Web Front-end > Clear the code to prevent js code from viewing the source code_javascript tips
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.