Forum Moderators: open

Message Too Old, No Replies

javascript before public html?

js external file

         

sudie123

10:00 pm on Jul 19, 2010 (gmt 0)

10+ Year Member



I am pretty new to javascript. I have a js file that I would like to remain invisible to the user. Is this even possible with javascript?
I thought I could put the .js file before the root (public_html) and then call it somehow... is there any way to do that?

Thanks,
Susan

Fotiman

11:30 pm on Jul 19, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



No, JavaScript is going to be processed client side. There is no way to hide it from the user.