HTML Cross-Browser Placeholder

How to create html placeholder to working all web browsers.This can be done using simple java script.Working for all major web browser.First of all create simple input field like this.