2.
<script language=javascript>
window.onbeforeunload = function()
{
  if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)
  {
    window.event.returnValue = "";
  }
}
</script>

解决方案 »

  1.   

    1. <a href="javascript:window.open('网址',样式变量)">123123</a>
      

  2.   

    to: tianch(晴空) 第一个问题是这样:我是要写在页面载入的时候.不是用window.open
      

  3.   

    <Script language="javascript">
    var w=screen.availWidth-10;
    var h=screen.availHeight-30;
    var objwin = window.open('aaa.asp',"","fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=" + w + ",height=" + h + ",top=0,left=0",true);
    window.opener=null;
    self.close();
    objwin.focus();
    </script>