Website Design Edmonton       Website Design Feedback       Website Design Sitemap     Contact Website Design Company
Website Designers R Us - Home
Protecting and hiding JavaScript code

Programmers are usually very possessive of their code. So if you think you have written this great script in JavaScript and don't want to share it with everyone, you can hide it from the web page source using the SRC attribute of <SCRIPT> tag.

<SCRIPT LANGUAGE="JavaScript" TYPE="TEXT/JAVASCRIPT"
SRC="my_precious_code.js">
<!--
//-->
</SCRIPT>

Here my_precious_code.js is the name of the file containing your JavaScript code. As evident from the SRC value, the file is located in the same directory as the html document. The file name can be anything you desire, however, the extension must be .js.

This method of hiding and protecting the JavaScript code is not foolproof. Though the JavaScript code is not displayed when you view the page source, smart visitors can check their cache and can find this external JavaScript file there. Also, web site grabbing programs like Go!zilla or Getright download external JavaScript files to display the web page correctly.

 

Return to Listing

Website Designers R us is based in Canada with branch office in Los Angeles, California. We are website developer & designer and have already created many ecommerce website design for USA, UK, and European countries. Our website development & creation is based on proper tools and techniques considering search engine optimization of the website.
 Home          ::             About Us          ::             Support            ::             Services            ::             Link Partners          ::             Contact

Copyright © 2006-2011 Website Designers R Us, a DOT Specialist Company. All rights reserved.