<SCRIPT LANGUAGE="JavaScript">
function openIt() {
var w=250,h=200;
window.open("","","width="+w+",height="+h+",left="+(event.x+window.screenLeft-w)+",top="+(event.y+window.screenTop))
}
</SCRIPT>
<button onclick="openIt()">open</button>

解决方案 »

  1.   

    看成右上角了<SCRIPT LANGUAGE="JavaScript">
    function openIt() {
    var w=250,h=200;
    window.open("","","width="+w+",height="+h+",left="+(event.x+window.screenLeft)+",top="+(event.y+window.screenTop))
    }
    </SCRIPT>
    <button onclick="openIt()">open</button>
      

  2.   

    dim winHeight
    dim winWidth
    winHeight=按钮上方的位置
    winWidth =按钮右边的位置window.open("11.asp",,"height="+winHeight+",width="+winWidth+");