Click here to Skip to main content
16,016,760 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,
I am using the following java script to open a new pop up window
JavaScript
function popup() {
        cuteLittleWindow = window.open("slidegallary.aspx", "littleWindow", "location=center,width=800,height=630");
    }

and an anchor to call that function the window that is being created has the facility to be maximized....i want to cut that facility off...so that the window that is being created remains of a particular size mentioned in the script and it cant be re-sized. any help will be greatly appreciated.

thank you
Posted
Updated 18-Sep-12 20:30pm
v2

1 solution

Try:
Parameter resizable=yes|no
JavaScript
function popup() {
        cuteLittleWindow = window.open("slidegallary.aspx", "littleWindow", "location=center,resizable=no,width=800,height=630");
    }

Details about parameter:
resizable=yes|no|1|0 : Whether or not the window is resizable. Default is yes.


UPDATE:
Here, have a detailed look on Window.Open feature[^].
 
Share this answer
 
v2
Comments
Skand Pratap Singh 19-Sep-12 2:52am    
sir,
the window that is being created still has the maximize option.....i want to shut that off..if u can help plz...it wil be grt help
Sandeep Mewara 19-Sep-12 2:54am    
You say, you can maximize it even after setting above parameter? It should not be the case. Maximize option should be disabled. Is not it?
Skand Pratap Singh 19-Sep-12 2:56am    
no sir...it is not so...
Sandeep Mewara 19-Sep-12 3:14am    
Updated answer with link. You can go through it and see it documented. Further, I have tried and it works.

Please try again, make sure you clear your cache, clean solution and rebuild and try out.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900