<a href="#" onclick = 'javascript:window.open("index.htm","123","width = 600 ,height = 360")'>打开</a>

解决方案 »

  1.   

    用screen.width和screen.height计算出屏幕高宽h和w,然后按下面方法算出窗口左上角的位置.
    left=(w-600)/2
    top=(h-360)/2
    最后写入open的代码中:
    <a href="#" onclick = 'javascript:window.open("/about/index.htm","123","left="+left+",top="+top+",width = 600 ,height = 360")'>打开</a>
      

  2.   

    果然,错在width = 600这里,你的空格是没有必要的,并且,添上了反而是错误的,应该注意,这里的空格并不是程序的语句,就是说,在解释(编译)的时候是不会将里面的多余空格去掉的,并且,它是按照字符串来处理的,如果IE在处理这个字符串的时候没有去空格,那这么做就会出错,去掉空格就好了var ss = window.open("about:blank","","width=600,height=360");ss.moveTo(100,220);