Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1004 How can I reload the current document into a full size window without any menu or toolbars?

You are here: irt.org | FAQ | JavaScript | Redirect | Q1004 [ previous next ]

Only by creating a new window at full size without the tool/menu bars and then closing the first window.

In index.htm:

<SCRIPT LANGUAGE="JavaScript"><!--
if (window.name != 'beezlebub') {
    var width = 640,height = 480;
    if (window.screen) {
        width = screen.availWidth;
        height = screen.availHeight;
    }
    window.open('index.htm','beezlebub','width=' + width + ',height=' + height + ',screenX=0,screenY=0,top=0,left=0');
    setTimeout('self.close()',2000);
}
//--></SCRIPT>

When the second window is created it is given an unusual name. When the file is reloaded into the second window it will not open another window because the window will already have been named 'beezlebub'.

Feedback on 'Q1004 How can I reload the current document into a full size window without any menu or toolbars?'

©2018 Martin Webb