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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

does the "included" js source code show up on client browser?

Status
Not open for further replies.

wvdba

IS-IT--Management
Jun 3, 2008
465
US
hi.
i have a question on js. does the "included" js file source code show up in client's browser? i'm trying to find out if js source code can be hidden or not.
thanks.
 
it can be obfuscated but never hidden. how would the browser execute the code if it cannot access it?

why would you want to hide the javascript?

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
While the actual code from the included file does not appear in the browser, it can be easily accessed.

The script tags would need the address to the file to actually load it. So just looking at the script tags would make it easy to download the js files.

But of course as jmeckley said the browser needs access to the code to actually run it.


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
All you need to do is load the page and check for yourself.

That said, you CANNOT hide ANYTHING from the client browser unless you NEVER put it on the web.

mmerlinn


"We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding. Answering questions for careless and sloppy thinkers is not rewarding." - Eric Raymond

Poor people do not hire employees. If you soak the rich, who are you going to work for?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top