简体   繁体   中英

How to disable minimize maximize button in the browser using 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>

You can't. Disabling minimise and maximise can be malicious.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM