Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to disable maximize button of a popup window using javascript

i tried :
window.open("/Sample/Add", "wndPopUp", " menubar = 0, location = 0, resizable=0, scrollbars=0, status=0,titlebar=0,toolbar=0,width=420px,height=150px,top=300%,left=250%");

but it's not working.
Posted

 
Share this answer
 
v2
Comments
Christian Graus 24-Jan-14 3:57am    
The thing marked as the answer there, cannot work. You don't maximise by a keypress, so an event handler for a key press can't stop it. Have you tested this, or are you just searching the site and pasting links ?
Karthik_Mahalingam 24-Jan-14 4:02am    
Christian,
I tried in my machine its working..
You can check the other links in the post . that why i gave the link for the post not the specific solution..
i know the key press will not work..
Christian Graus 24-Jan-14 4:03am    
So one of the OTHER answers in that link will work ? How is the OP supposed to know which one to try, if the one marked as an answer will not work ? I could see some of the others would work, but the link would be hard to follow, if it has 5 answers, and one of the ones that was rejected, is the right one.
Karthik_Mahalingam 24-Jan-14 4:07am    
it should be resizable='no'
What does 'not working' mean ?

Here[^] is the documentation, it seems like not all browsers let you set this.
 
Share this answer
 

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