Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make the browser to go into full screen mode onload

 
vidya lakshmi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a problem. In our project we have to make the browser go to fullscreen mode onload itself. I tried that with this set of code.

<code>
function maximisewin(){
window.open("customermaintainance.html","_parent","menubar=no,toolbar=no,status=no,fullscreen=yes,scrollbars=yes");
}
</code>

But while loading on the same page it is not going to fullscreen mode.

the second way what I tried was the same code but giving null instead of parent.
<code>
function maximisewin(){
window.open("customermaintainance.html",null," menubar=no,toolbar=no,status=no,fullscreen=yes,scrollbars=yes");
window.close();
}
</code>
this was opening a new window when the script is executed in the parent window. In this scenario I want the parent window to be closed automatically when the new window is opened in the fullscreen mode. Is this possible?

Is there anyother way to get this issue solved. Please help me out.

regards,
vidya
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can not close the main browser window since it is a security issue.

Eric
 
vidya lakshmi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any other solution for this issue

Regards,
vidya
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We had similar issues (not exactly this one) and made a "launch" page that does nothing but open the real application window. Users are free to leave the launch window up, use it for other purposes, close it, etc. When I use other products that warn you not to close the original window (AT&T Meeting comes to mind) it ticks me off. You'll have to decide if your users can tolerate the extra window.

Or you can just tell them "Please press F11" on the splash page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic