javascript - Resize in firefox not working -
can tell me why resizing not work in firefox works in internet explorer? cannot figure out how force in browsers. trying resize width 800 , height 475. trying make can not maximize browser (disabling it). removing toolbars showing , url well.
function openwindow(url, width, height) { var features = 'resizable:no;status:yes;dialogwidth:' + width + 'px;dialogheight:' + height + 'px;help:no'; features = features + ';dialogtop:' + (window.screen.availheight - height) /2; features = features + ';dialogleft:' + (window.screen.availwidth - width) /2; window.showmodaldialog(url, this, features); } function resize(width, height) { var availwidth = window.screen.availwidth; var availheight = window.screen.availheight; var top = (availheight - height) / 2; var left = (availwidth - width) / 2; if (window.dialogheight) { window.dialogheight = height + 'px'; window.dialogwidth = width + 'px'; window.dialogleft = left; window.dialogtop = top; } else { var _win; if(window.parent) _win = window.parent; else _win = window; _win.resizeto(width, height); _win.moveto(left, top); } } resize(800, 475); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> any advice help. not understand why things work in browsers , not in others.
as can see here, it's not been allowed in firefox @ since firefox 7. sorry won't able resize window in firefox.
Comments
Post a Comment