页:
[1]
| canon_canon | 2005-1-7 02:23 AM |
|
关闭其它页面?
用网页A上的按钮,打开网页B,同时保持网页A不被关闭
第二次用网页A上的按钮,打开网页B,要把第一次打开的网页B关闭
请问如何实现? |
|
[php]
<script>
var win;
function openwin(){
if(!win){
win=window.open('about:blank');
}else{
win.close();
win=null;
}
}
</script>
<input type="button" value="button" name="b2" onclick="openwin();" />
[/php] |
Powered by Discuz! Archiver 6.1.0
© 2001-2006 Comsenz Inc.
Processed in 0.005831 second(s), 2 queries |