How to disable minimize, maximize button in the browser?
You cannot (consistently). Deliberately malicious actions are generally restricted by browsers.
WIll give you a new window without the menubar and without the toolbar. That's what I'm assuming you want when you say "disable". If you just want to disable the functionality while still showing the buttons, then you can't.
Look here for a reference on the window.open() method.
Here is another approach, you can send key strokes for Alt, Space,N.
<script> window.open("http://www.google.com/", "Google", "dialog=yes"); </script>
©2020 All rights reserved.