Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.