111、关不掉的窗口

111、关不掉的窗口

脚本说明:

第一步:把如下代码加入<body>区域中

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

theUrl="poper.htm";

function doThePopUp() {

reWin = window.open(theUrl,'determined','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=150,height=100,top=100,left=100');

}

//  End -->

</script>

<a href="javascript:doThePopUp()">跳出窗口</a>

 

 

第二步:新建一个poper.htm文件,其html代码为:

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

theUrl = 'http://www.7stk.com'

lockU = 1

function doAgain() {

if (lockU == 1) {

reWin=window.open(theUrl,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=150,height=100,top=100,left=100')

   }

}

//  End -->

</script>

<BODY onunLoad="doAgain()">

除非你按下面这个<a href="javascript:lockU=0;self.close()">关闭</a>,否则你是关不掉这个窗口的

 

Write a comment

Comments: 0