File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes How to make the browser to go into full screen mode onload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to make the browser to go into full screen mode onload" Watch "How to make the browser to go into full screen mode onload" New topic
Author

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

vidya lakshmi
Greenhorn

Joined: Apr 09, 2007
Posts: 8
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
You can not close the main browser window since it is a security issue.

Eric
vidya lakshmi
Greenhorn

Joined: Apr 09, 2007
Posts: 8
Any other solution for this issue

Regards,
vidya
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
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.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make the browser to go into full screen mode onload
 
Similar Threads
Window Sizing
Problem with submit to parent
IE 6 hide menubar, toolbar in current window
JavaScript Window Open
call action with javascript