Click here to Skip to main content
15,893,663 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I create popup but i want to disable maximize and minimize button.

This code below:
Button1.Attributes.Add("onclick","window.open('Default2.aspx','','resizable=no,height=300,width=300');return false");

But it doesn't work!!

I try in browser firefox 3.6 ,chrome 12.0.742.122 and IE

Can someone help me...
Posted
Updated 25-Jul-11 18:25pm
v3

The resizable will not allow the user to resize the window , it also locks the maximize button which makes sens.
I am not sure you can have control over maximize/minimize button straight away.
 
Share this answer
 
Uses jQuery UI dialog instead (if it can apply).

jQuery UI dialog demo[^]

jQuery dialogs are displayed over your page content and would be the prefered way to display temporary dialog.

There are some cases when it does apply well while other cases it does not make sense. For exemple, should the user be able to navigate in the new windows/dialog.
 
Share this answer
 
v2
 
Share this answer
 
Hi,
Hope it will work


C++
window.open(fwdUrl, "Titile", "height=320 width=500 left=150 top=150 scrollbars=yes");
 
Share this answer
 
HI,
Hope it will work


C++
window.open(fwdUrl, "Titile", "height=320 width=500 left=150 top=150 scrollbars=yes");
 
Share this answer
 
Oke.. thanks for your all post,, who help me in coding.
 
Share this answer
 
Oke.. thanks for your all post,, who help me in coding. but i still cannot disable resizable popup.
the code is doesn't work. someone tell me that says i must try jquery to disable resizable popup.
now i still try to find the script using jquery. to disable resizable popup, i still need people help. ^_^
 
Share this answer
 
its working in IE but not working in other browsers like firefox and chrome
 
Share this answer
 
Comments
Member 10378310 9-Jan-14 4:33am    
Please can u let me no ASAP ,to disable minimize button of pop up window using javascript or Jquery.

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