Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 400
  • Last Modified:

How to Hide Javascript code ?

How to hide a javascript code in an html page from a surfer view.
what doesn't it take.

thank you
0
fana
Asked:
fana
1 Solution
 
haystorCommented:
You can't completely hide it from a deteremined surfer, because it needs to be downloaded to the client in order to run.  You can put all your functions into one frame, and make that frame 0 width. Thereby making it more difficult to find.
0
 
fanaAuthor Commented:
Can you please be more specific. How about calling a function <javascript ="whatever.js"> and put the file somewhere on the server. How would that work ?

Thank you
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now