[Xitami] hiding *.js code

Dan Fisher xitami@lists.xitami.org
Wed, 15 Aug 2001 18:51:20 -0700


Samuel Trygger wrote:
> 
> At 20:26 2001-08-15 +0200, Toernooi Assistent wrote:
> 
> > Would there be a way to hide *.js subroutines from simple browsing?
> 
> Nope. You can't. Not easily anyway. You could use some encryption
> routine (such as those used by most VBScript virus creators) to
> obfuscate your scripts and then a different routine to unobfúscate the
> code, once someone calls a  function in your script.

Do you want the browser not to see it or the user not to be able to
steal it?
If the later, try:

<script language="JavaScript" src="script.js" </script>

Doing a View Page does not show the *.js file.. 

dan