Well,
Javascript that has to be executed at the client side must be sent to the
client, and since Javascript is an interpreted language there is *NO* way of
preventing the user to download and see the Javascript code.
You could try to make it as difficult as possible, but there will be always
a way to see the code: the borwser should see it as well, no ?
The best option, in my opinion, is to obfuscate the Javascript code: see
http://www.syntropy.se for example.
Wim
"Ryu" <bl***************@yahoo.com> wrote in message
news:uL**************@TK2MSFTNGP11.phx.gbl...
Hi,
May I know how to prevent Javascript from being dlownloaded when the user
saves at "View Source"? I have added "js" at IIS's application
configuration's mapping and i have added the following at web.config:
But the javascript is still being downloaded. Please help
<httpHandlers>
<add verb="*" path="../ig_common.js"
type="System.Web.HttpForbiddenHandler"/>
</httpHandlers>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.747 / Virus Database: 499 - Release Date: 01/09/04