2016-10-22 112 views
0
<!DOCTYPE html> 
<html> 
<body> 

<p>Click the button to open an about:blank page in a new browser window that is 200px wide and 100px tall.</p> 

<button onclick="myFunction()">Try it</button> 

<script> 
function myFunction() { 
    var myWindow = window.open("bigpage.html", "resizable=0,menubar=0,scrollbars=0,fullscreen=0,titlebar=0", "width=2000,height=1000"); 
} 
</script> 

</body> 
</html> 
+5

可能的重複[如何禁用最小化,最大化瀏覽器中的按鈕?](http://stackoverflow.com/questions/4754823/how-to-disable-minimize-maximize-button-in-the-browser) – Tibrogargan

回答

0

你不能。禁用最小化和最大化可能是惡意的。

+0

最大值是唯一會變灰的值。在IE –

+0

是的。沒有(體面的)瀏覽器會讓你擰那些。不要依賴它的工作。 –

相關問題