I\'m using the following script to make my web app go fullscreen...
function enterFullscreen(){
var element = document.getElementById(\'container\');
I don't know the exact answer to your question, but this information might help:
I had a similar black background problem with enterFullscreen(document.body);. The background color became normal after I changed the line to enterFullscreen(document.documentElement);.
The css I used is body{background-color: #D7D7D7; margin: 0px;}.