如何使用javascript禁用浏览器中的最小化最大化按钮?

时间:2016-10-22 05:59:32

标签: javascript

<!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>

1 个答案:

答案 0 :(得分:0)

你做不到。禁用最小化和最大化可能是恶意的。