I'm building a php/javascript page and I wanted to write some comments about my client side javascript code that I wanted "hidden" from browsers. Solution: Enclose the comments in php tags:
I know its not the most useful tip in the world, but a lot of times I want to put "sensitive" information inside of javascript comments, and this takes care of prying eyes.
Kevin
Code:
<? /*
These are comments
*/ ?>
I know its not the most useful tip in the world, but a lot of times I want to put "sensitive" information inside of javascript comments, and this takes care of prying eyes.
Kevin