473,395 Members | 1,462 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How prevent popup window resizing in browsers.

Anz
function popup_window(pageurl,width,height)
{
mywindow = window.open(pageurl,"mywindow","scrollbars=1,fulls creen =
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 ?
Jul 17 '08 #1
2 1415
On Jul 17, 1:08*pm, Anz wrote:
function popup_window(pageurl,width,height)
{
* * * * mywindow = window.open(pageurl,"mywindow","scrollbars=1,fulls creen =
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.
Jul 17 '08 #2
Henry wrote:
On Jul 17, 1:08 pm, Anz wrote:
>function popup_window(pageurl,width,height)
{
mywindow = window.open(pageurl,"mywindow","scrollbars=1,fulls creen =
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
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Jul 17 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Obantec Support | last post by:
Hi i leached some code and strung together a popup i need for a page with 5 help buttons. Now i could use 5 scripts and pre-load the values but i would rather get a better understanding of how...
5
by: J Krugman | last post by:
My JavaScript code opens a popup window which contains some text (with hyperlinks), and some buttons. I want this popup to be *as small as possible*, while still showing all of its contents. Is...
23
by: Markus | last post by:
Hi, i have this problem: Sometimes, i can't reproduce, if i click on an small image on the website, the popup _AND_ an other Tab in firefox open. Here are the linkcode: <div...
3
by: ypress | last post by:
Hi. I have a page that contains this simple function: <script language="javascript"> function openPop(url, name, w, h) { var features = ""; features += "scrollbars=no,"; features +=...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.