Click here to Skip to main content
12,447,999 members (76,919 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Javascript Web
Hi friends, please help me, i have want to disable the maximize button of window popup
my code is--

<script type="text/javascript">

function OpenPopUp(PID) {
      //alert("Pardeep");
      window.open('GoogleMapSummary.aspx?PID=' + PID, 'name', 'width=700,location=no,menubar=no,height=500,scrollbars=no,resizable=no,fullscreen=no');
      return false;
  }
  </script>


Thanks in advance.
Posted 18-Apr-12 3:25am
Updated 18-Apr-12 21:18pm
v3
Comments
Syed Salman Raza Zaidi 18-Apr-12 9:32am
   
Whats the issue with this code?
Shahin Khorshidnia 19-Apr-12 3:17am
   
Why did you tag C#?
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

hi,
try by setting "risizable=no" in window.open.

check this.

http://msdn.microsoft.com/en-us/library/ie/ms536651(v=vs.85).aspx[^]
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 4

try this code
window.open("http://www.domainname.ext/yourfile","windowname","resizable=no");
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 5

hi this is the javascript code for disable the window popup maximize option.
<script language="javascript" type="text/javascript">
   
function InitializeMap() 
       {
           document.onkeydown = function () {
            if (122 == event.keyCode) {
                event.keyCode = 0;
                return false;
       }
      }
}
 
window.onload = InitializeMap;
</script>
  Permalink  
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

It is THE sollution!!


Take a look at this link.

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/showmodaldialog.asp[^]

There's a demo and a nice description.

Another Trick

you can disable the maximize button by setting the window popup var t
resize=0 and to disable the minimize button set the following in th
popup window's body tag onblur="this.focus()"
  Permalink  
v4
Comments
Nelek 18-Apr-12 17:49pm
   
Edit: Made the link clickable

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160811.3 | Last Updated 15 Jun 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100