2016-10-22 111 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

是的。没有(体面的)浏览器会让你拧那些。不要依赖它的工作。 –

相关问题