How to hide JavaScript source code?

Discussion in 'Programming' started by Amisha_Sharma, Oct 13, 2008.

to remove all ads.
  1. Amisha_Sharma

    Amisha_Sharma New Member

    Messages:
    3
    Hi all

    Please tell me
    How I can hide my JavaScript source code?

    Thanks
     
  2. joe

    joe New Member

    Messages:
    82
    place it in a js file and add it in as an include.
     
  3. Phidev

    Phidev New Member

    Messages:
    9
    You cannot hide it. The browser needs to code in order to execute it so it has to go reach the users computer.

    The .js options may only require and extra step to get to the code but it is still possible. there is no way to hide it.
     
  4. zkiller

    zkiller Super Moderator Staff Member

    Messages:
    1,639
    Like Phidev stated, it is not possible to hide client side code such as Javascript or HTML.
     
  5. Gulliv

    Gulliv New Member

    Messages:
    1
    Obfuscate

    You cannot hide the source code but you can obfuscate it
     

Share This Page