Is there a way to make a javascript file accessible by a web page, but not by a user? What I mean is, I want my web page to be able to call functions in my .js file, but I don’t want the user to be able to view or download that .js file.
As of right now, if a user view’s the source of my web page they will see code like:
[code]<Script language=”JavaScript” src=”www.mywebspace.com/myjava.js”></script>
Once they see that, they can simply paste the ‘www.mywebspace.com/myjava.js’ into their web browser and download/view the file. Is there a way to avoid this?
I’ve tried playing with the ‘permissions’ for the .js file on my server but have yet to solve the problem. Turning off read rights prevents the user from downloading it, but also prevents my web page from using it.
Advice?
Thanks in advance,
-Jack