You are here: irt.org | FAQ | JavaScript | Window | Q943 [ previous next ]
You'll have to open another window, and then close the current window to achieve what you want.
<script language="JavaScript"><!--
if (history.length != 1) {
window.open(location.href,'main','fullscreen=yes,outerHeight=' + screen.availHeight + ',outerWidth=' + screen.availWidth);
setTimeout('self.close()',1000); // close self after a seconds delay
}
//--></script>