打开新窗口
————————test4.php
<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function () {
setTimeout(bb(),5000);
function bb(){
setTimeout(
"window.open('test3.php','_black','height=500,width=611,scrollbars=yes,status =yes')"
,2000);
}
// window.open('test3.php','_black','height=500,width=611,scrollbars=yes,status =yes');
// // aa.close();
// setTimeout("aa.close()", 2000);
// setTimeout(funticon(){aa.close()},2000);
// aa.close();
// $("#aa").click();
// window.close('test3.php');
});
</script>
</head>
<body>
<!-- <a href="javascript:" id='aa' onClick="window.open('test3.php','','height=500,width=611,scrollbars=yes,status =yes')">123</a> -->
<p></p>
</body>
</html>
______________test3.php
<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function () {
function aa(){
// alert(1);
setTimeout(function(){window.close();},5000);
// alert(1);
}
setTimeout(aa(),2000);
});
</script>
</head>
<body>
<a href="javascript:" onClick="window.open('test3.php','','height=500,width=611,scrollbars=yes,status =yes')">123</a>
<p></p>
</body>
</html>