<script>
showModalDialog("about:hehe","","help=no;dialogWidth="+screen.width+";dialogHeight="+screen.height)
</script>

解决方案 »

  1.   

    <input type="button" value="close" onclick="javascript:window.close()">
      

  2.   

    我是在新窗口中中放一张很大的图片,想通过窗口上常规的关闭按钮关闭,不希望用window.close()
      

  3.   

    最大化就没有关闭按钮了,你可以找一张和关闭一样的图片进行模拟
    <a href="javascript:window.close()"><img src="" border=0></a>
      

  4.   

    顺便问一句:在showModalDialog中网页上的超级连结指向的文件,可以仍然出现在现在的dialog中吗?