According to this article Google Chrome 15 has a fullscreen JavaScript API.
I have tried to make it work but failed. I have also searched for official documentation
I made a simple wrapper for the Fullscreen API, called screenfull.js, to smooth out the prefix mess and fix some inconsistencies in the different implementations. Check out the demo to see how the Fullscreen API works.
Recommended reading: