The sample code in IE6 is as follows:
Window. opener = null;
Window. close ();
The sample code in IE7 is as follows:
Window. opener = null;
Window. open ("", "_ self ");
Window. close ();
To display in full screen (remove IE Toolbar, address bar, and menu bar), you can only use window. open. If the first page is to be displayed in full screen, you need to set a transit page. The code for the transfer page is as follows: (no need to write anything in the body)
Copy codeThe Code is as follows:
<Head>
<Title> </title>
<Script type = "text/javascript">
Function openwindow (){
Optional values open('pos_search.htm', 'newwindow', 'fullscreen = 1, top = 0, left = 0, toolbar = no, menubar = no, scrollbars = no, resizable = no, location = n o, status = no ');
Window. opener = null;
Window. open ("", "_ self ");
Window. close ();
}
</Script>
</Head>
<Body onload = "openwindow ()">
</Body>
</Html>