Block IE popup '; The page you are viewing is trying to close the window do not close this window '; The method of
- 2020-03-30 01:11:49
- OfStack
The sample code in IE6 is as follows:
Window. The opener = null;
Window. The close ();
The sample code in IE7 is as follows:
Window. The opener = null;
Window. The open (" ", "love");
Window. The close ();
If you want a full-screen display (without IE's toolbar, address bar, and menu bar), you can only use window.open(); Methods. If the first page is going to be full-screen, you need to set up a transit page. The transit page code is as follows :(you don't have to write anything in the body)
<head>
<title></title>
<script type="text/javascript" >
function openwindow() {
window.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>