File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Hide Javascript code Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Hide Javascript code" Watch "Hide Javascript code" New topic
Author

Hide Javascript code

Tess Jacobs
Greenhorn

Joined: Feb 07, 2012
Posts: 10
Can you please suggest ways to hide javascript code so that it is not visible to users. Thanks.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
It is impossible.

Eric
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50693

Indeed. If the browser can see it, then anyone can. The best you can do is to run it through a minimizer or obfuscator.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
IntelliJ Java IDE
 
subject: Hide Javascript code
 
Threads others viewed
Hiding javascript when html page is loading
Hide Javascript code
Hiding JavaScript in WEB-INF?
problem in paging using javascript
Howto call a Javascript Function with a dynamic JSF EL parameter
developer file tools