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

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

irt.org | Knowledge Base | JavaScript | Redirect | Q1004 [ previous next ]

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

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?'


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.