What I believing you are thinking of is Facebook's use of form input placeholders which are a part of the HTML5 spec and supported by all major and modern browsers.
You can use this library to reproduce that effect for legacy browsers as well: Placeholders.js