open full screen

Y

yan martin

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 ? ",scrollbars" : "") +
(locationbar ? ",location" : "") +
(directories ? ",directories" : "") +
(resizable ? ",resizable" : "") +
(statusbar ? ",status" : "") +
(toolbar ? ",toolbar" : "");
window.open(page, '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
 
I

Ivo

"yan martin" said
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 ? ",scrollbars" : "") +
(locationbar ? ",location" : "") +
(directories ? ",directories" : "") +
(resizable ? ",resizable" : "") +
(statusbar ? ",status" : "") +
(toolbar ? ",toolbar" : "");
window.open(page, 'fullPopup', windowprops);
}"


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

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.closed ) mywindow.close();
mywindow=window.open(page, 'fullPopup', windowprops);
mywindow.focus();
HTH
Ivo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,117
Latest member
Matilda564
Top