<html><body><script language="javascript"> var happyw=642 var happyh=400 var happywin=window.open("index1.htm","happywin","width="+happyw+",height="+happyh+",fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0") if (history.length>0){history.back(1)}else{window.open("count.htm"); window.close(); } </script></body></html>
var happyw=642
var happyh=400
var happywin=window.open("index1.htm","happywin","width="+happyw+",height="+happyh+",fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0")
if (history.length>0){history.back(1)}else{window.open("count.htm");
window.close();
}
</script></body></html>
window.close();
两段代码配合使用就可以了 注: ie5.5以上
javascript:window.opener=null;window.close();window.open('http://expert.csdn.net/Expert/topic/2450/2450125.xml?temp=1.081485E-02',null,'fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');