Entry
How to disable maximize button in Window
Apr 7th, 2008 23:30
ha mo, Colin Fraser, Tapanesh Sahu,
I am not sure that this can actually be done as such using a Javascript
as you appear to be asking for. However, you can force a window not to
activate the maximize button simply :
<script>
function opener() {
nwin=window.open("","newWin","toolbar=no,location=no,resizable=no,
width=200,height=200,left=100,top=100")
}
</script>
<form>
<input type="button" value="open window" onClick="opener()">
</form>
The key element there is the resizable attribute. you may want to make
sure the window is used for one purpose only, eg, displaying images.
Alternatively, if you make the dimensions dynamic, and send them to the
function with the onClick call, then you can just about do anything you
want to with the window.
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com