Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can we disable resizing of new popup window in firefox?

I tried opening a new window using

window.open("lookup.htm","lookupWin", "height=400,width=500,resizable=false");

It works fine in IE, but in FF the pop up is still resizable. How can I disable this resizing in FF as well?

like image 895
Rakesh Juyal Avatar asked Nov 11 '09 13:11

Rakesh Juyal


3 Answers

Read this one from mdc

Window functionality features

resizable

If this feature is set to yes, the new secondary window will be resizable.

Note: Starting with version 1.4, Mozilla-based browsers have a window

resizing grippy at the right end of the status bar, this ensures that users can resize the browser window even if the web author requested this secondary window to be non-resizable. In such case, the maximize/restore icon in the window's titlebar will be disabled and the window's borders won't allow resizing but the window will still be resizable via that grippy in the status bar.

Starting with Firefox 3, secondary windows are always resizable

Bug 177838 - Make all popup windows resizable, ignoring resizable=no

like image 109
rahul Avatar answered Nov 07 '22 11:11

rahul


Yes it doesn't work anymore. Try

<script type="text/javascript">
window.onresize = function() 
{
    window.resizeTo(500,500);
}
window.onclick = function() 
{
    window.resizeTo(500,500);
}
</script>
like image 20
localtime Avatar answered Nov 07 '22 13:11

localtime


I don't think you can. Firefox (and some other browsers) just ignore the "resizable" setting.

like image 2
Jan Hančič Avatar answered Nov 07 '22 13:11

Jan Hančič