Friday, July 31, 2009

What is javascript code for Internet Explorer to hide its view menu's source to protect my website coding?

You can't, what you can do though is disable Right-Click (Context-Menu), but if people are using another browser say Firefox, they can over-ride your right-click and still see your source code.





No point trying to hide it, people will find ways to see it, next best solution is to compress the javascript files which makes it very hard to read, a good compressor:

What is javascript code for Internet Explorer to hide its view menu's source to protect my website coding?
You can't disable browser menu, but you can open your page in a window that does not have the menu in the first place. Also, you are gonna have to disable the right click. You can find the code how to do that here:





http://www.codelifter.com/main/javascrip...
Reply:Forget trying to obfuscate your javascript source, it's an excercise in futility, especially for something as inane as a menuing script. Guaranteed you haven't stumbled upon any new earth-shattering technique for handling menus with javascript.


No comments:

Post a Comment