|
Q886 How can I maximise and bring the popup window to the top, from within the window that opens it?
irt.org | Knowledge Base | JavaScript | Window | Q886 [ previous next ]
Q886 How can I maximise and bring the popup window to the top, from within the window that opens it?
Try:
<script language="JavaScript"><!--
function maximiseWindow(winRef) {
if (window.screen) {
winRef.moveTo(0,0);
winRef.outerHeight = screen.availHeight;
winRef.outerWidth = screen.availWidth;
}
}
function alterWindow(winRef) {
maximiseWindow(winRef);
winRef.focus();
}
var windowHandle = window.open('a.html','winname','fullscreen=yes');
setTimeout('alterWindow(windowHandle)', 1);
//--></script>
|
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.