How prevent popup window resizing in browsers.

A

Anz

function popup_window(pageurl,width,height)
{
mywindow = window.open(pageurl,"mywindow","scrollbars=1,fullscreen =
0,resizable =no,menubar=no,width="+width+",height="+height);
mywindow.focus();
}

Here is the javascript function which i am using, but this doesn't
work in opera?, is there any other script that will work in all
browsers especially in opera ?
 
H

Henry

function popup_window(pageurl,width,height)
{
        mywindow = window.open(pageurl,"mywindow","scrollbars=1,fullscreen =
0,resizable =no,menubar=no,width="+width+",height="+height);
        mywindow.focus();

}

Here is the javascript function which i am using, but this doesn't
work in opera?, is there any other script that will work in all
browsers especially in opera ?


Do you mean that you want to know how to make a window opened with -
window.open - non-resizable in more browsers (including opera). Don't
do that, don't even try it. There are two possible scenarios for the
user: 1. you opened the window at the correct size for the user, and
so the user will never attempt to re-size it and it will not matter
whether it is re-sizable or not. Or 2. you opened the window at the
wrong size for the user and if he/she then cannot re-size it you will
have failed the user.

Opera have noticed that web developers have a strong tendency to not
think about what they are designing and so to end up failing the user,
so they have withdrawn the facility.
 
T

Thomas 'PointedEars' Lahn

Henry said:
function popup_window(pageurl,width,height)
{
mywindow = window.open(pageurl,"mywindow","scrollbars=1,fullscreen =
0,resizable =no,menubar=no,width="+width+",height="+height);
mywindow.focus();

}

Here is the javascript function which i am using, but this doesn't
work in opera?, is there any other script that will work in all
browsers especially in opera ?

[...]
Opera have noticed that web developers have a strong tendency to not
think about what they are designing and so to end up failing the user,
so they have withdrawn the facility.

And so has Mozilla.org, per Firefox 3.0 (as discussed recently in
de.c.l.js). However, according to the Client-Side JavaScript 1.3 Reference,
the features string must not contain whitespace, which might be another
reason for it not working.


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top