How to disable Firefox maximize button for popup?

how to disable Firefox maximize button for popup?

+2


source to share


5 answers


https://developer.mozilla.org/En/DOM/Window.open



try dialog = yes

+4


source


Dear friend, unfortunately there is no way to disable the minimize and enlarge buttons in Firefox, Chrome, Opera, IE only, this script should force the browser screen size, so if anyone wants to expand, Abs

use javascript ....        

var width = 1028;
var height = 800;
window.moveTo((screen.availWidth/2)-(width/2),(screen.availHeight/2)-(height/2)) 
window.resizeTo(width,height);

window.onresize = function() {window.resizeTo(width,height); } 

      



\ about/

+2


source


You can use the attribute

mutable

- false to prevent resizing of the new window.

window.open("http://www.domainname.ext/yourfile","windowname","resizable=no");

      

More details here

window.open

0


source


You can specify the popup as non-resizable:

window.open('http://example.com/', 'popUpWindow', 'width=400,height=150,

resizable=no

,scrollbars=yes');

0


source


when opening a window use resizable = no or resizable = 0

window.open("sample.aspx", "samplename", "resizable=no");

      

0


source







All Articles