how to hide the javascript


Web tier: servlets, JSP, Web frameworks: how to hide the javascript

  1. how to hide the javascript (3 messages)

    I want to hide the javascript in my programme so that no one can see by using view code in the brower.

  2. hi pinky

    u can do in this way. just include this

    <script language="javascript" src="/prog/example.js">

    see here in src attribute u need to specify the path where ur going to store ur javascript code. u should save ur javascript code in .js page.

  3. thanks
    I got it
  4. how to hide the javascript[ Go to top ]

    Remember that this will not prevent people gaining access to the .js file if they want to. Your original page will detail the location of the .js file that can be loaded as a text file.