I want to hide the URL bar from my single-page application by using JavaScript.
I tried to set bigger height of the \'body\' element and then perform:
For iPhone, you can make your content just one pixel higher than the viewport, that will eliminate the navbar.
Working code example: http://pastebin.com/16s8Xvbw
Caveats: