I dont want the user to see the javascript code in any way. I have disabled the right Click, but still he can see it through the View->Source Menu of the internet explorer. How do I disable that Menu?

Questions by mkatpatal   answers by mkatpatal

Showing Answers 1 - 1 of 1 Answers

Onkar Kumar

  • Sep 7th, 2006
 

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>

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions