open full screen

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yan martin

    open full screen

    Hi,

    I am using this script

    "function openFullscreen( page) {
    var yes = 1;
    var no = 0;
    windowprops = "width=" + (screen.width-10) + ",height=" + (screen.height-50)
    + ",top=0,left=0" ;
    windowprops += (menubar ? ",menubars" : "") +
    (scrollbars ? ",scrollbar s" : "") +
    (locationbar ? ",location" : "") +
    (directories ? ",directori es" : "") +
    (resizable ? ",resizable " : "") +
    (statusbar ? ",status" : "") +
    (toolbar ? ",toolbar" : "");
    window.open(pag e, 'fullPopup', windowprops);
    }"


    to open a window full screen,
    but when this window is hidden and I want to re-open it, I can't ..?

    Thanks in advance


  • Ivo

    #2
    Re: open full screen

    "yan martin" said[color=blue]
    > I am using this script
    >
    > "function openFullscreen( page) {
    > var yes = 1;
    > var no = 0;
    > windowprops = "width=" + (screen.width-10) + ",height=" +[/color]
    (screen.height-50)[color=blue]
    > + ",top=0,left=0" ;
    > windowprops += (menubar ? ",menubars" : "") +
    > (scrollbars ? ",scrollbar s" : "") +
    > (locationbar ? ",location" : "") +
    > (directories ? ",directori es" : "") +
    > (resizable ? ",resizable " : "") +
    > (statusbar ? ",status" : "") +
    > (toolbar ? ",toolbar" : "");
    > window.open(pag e, 'fullPopup', windowprops);
    > }"
    >
    >
    > to open a window full screen,
    > but when this window is hidden and I want to re-open it, I can't ..?[/color]

    Hidden? You mean minimized to the taskbar? You could try closing the window
    before re-opening it, or give it focus to un-minimize it. In both cases, you
    need a global variable to reference the window. For example:
    if ( mywindow && !mywindow.close d ) mywindow.close( );
    mywindow=window .open(page, 'fullPopup', windowprops);
    mywindow.focus( );
    HTH
    Ivo


    Comment

    Working...