Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Intermediate
Jul 16, 1999

How to View the Source of External JS Files

You can use an external JS file to store modular JavaScript code. In addition to being modular, it hides your JavaScript code from novice users. However, it is possible for any user to see the source code contained in any JS file. Just use this syntax in either the address bar of either IE or Netscape:

 
view-source:http://www.myserver.com/myfile.js

The view-source protocol will only display the response sent by your Web server, so there is no danger in anyone seeing your server-side ASP code.

William Wen
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date