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?
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
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>
I don't think you can. Firefox (and some other browsers) just ignore the "resizable" setting.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With