Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.js Files 1

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
If I use a JavaScript from a file using the src=myscript.js option can the source code be easily viewed from client browsers (as you would view say the HTML source etc.)?

My hope is that it cannot.

Thanks,

Michael
 
Michael, the client will not see the .js file contents by viewing source but if they look in their browser cache it will be there. Netscape does name mangling but IE leaves the original name. My experience is you'll need to do server side stuff if you want to truly hide the code.

Regards...
 
>>the client will not see the .js file contents by viewing source

Code:
view-source:[URL unfurl="true"]http://www.tek-tips.com/jsource.js[/URL]

:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top