There is a trick where you can use javascript to open a new window, document.write source code from the parent window, and then close the parent window. The parent window closes so the source is "gone" and the child window only shows the document.write javascript. Maybe this is what you're referring to.
Otherwise, just scroll down when you view the source; people "hide" HTML by putting a bunch of newlines at the top.