I would like to open my html page in fullscreen mode. I tried to execute this javascript in body's onload event handler.
window.fullScreen = true;
But unfortunately that doesn't seem to be working. Is there any other way with which we can achieve the same.
This is unadvisable as it results in unexpected browser behviour for the user. For this reason, many browsers no longer let unprivileged scripts modify this setting.
For example, from Mozilla Developer Center
See https://developer.mozilla.org/En/DOM/Window.fullScreen
take it from link : http://www.htmlcodetutorial.com/linking/linking_famsupp_87.html
Try this script
For calling form script use
or with hyperlink
Chrome 15, Firefox 10, and Safari 5.1 now provide APIs to programmatically trigger fullscreen mode.
See this hacks.mozilla.org blog post for details.
I dont think you can set the windows properties by using the onload event. Try setting the properties as you open the window. This should work...
I'm pretty sure that most browsers block this nowadays as it's annoying.