當我嘗試通過javascript
調用URL作爲pop-up window
s時,加載彈出窗口後,即使在將resizable
屬性設置爲「0」後,仍可通過鼠標拖動來調整窗口大小。請參閱下面的代碼段,JavaScript:Window.open函數允許在將可調整大小的屬性設置爲「0」後調整窗口的大小
<script type="text/javascript">
function poponload()
{
mywindow = window.open("factory.php?content=con1", "mywindow", "location=1,status=1,scrollbars=0,width=300,height=300,resizable=0");
mywindow.moveTo(150, 150);
}
</script>
請澄清我,如果我在代碼中犯了什麼錯誤。
可能的重複http://stackoverflow.com/questions/1715201/how-can-we-disable-resizing-of-new-popup-window-in-firefox – DhruvPathak