473,788 Members | 2,895 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How prevent popup window resizing in browsers.

Anz
function popup_window(pa geurl,width,hei ght)
{
mywindow = window.open(pag eurl,"mywindow" ,"scrollbars=1, fullscreen =
0,resizable =no,menubar=no, width="+width+" ,height="+heigh t);
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 1427
On Jul 17, 1:08*pm, Anz wrote:
function popup_window(pa geurl,width,hei ght)
{
* * * * mywindow = window.open(pag eurl,"mywindow" ,"scrollbars=1, fullscreen =
0,resizable =no,menubar=no, width="+width+" ,height="+heigh t);
* * * * 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(pa geurl,width,hei ght)
{
mywindow = window.open(pag eurl,"mywindow" ,"scrollbars=1, fullscreen =
0,resizable =no,menubar=no, width="+width+" ,height="+heigh t);
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.de mon.co.uk>
Jul 17 '08 #3

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

Similar topics

5
3974
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 to pass some extra values to 1 script. 1. <SCRIPT LANGUAGE="Javascript"><!-- function popUp(url) {
5
1709
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 there any way to determine this size dynamically that will work for all "reasonably recent" browsers (e.g. IE 6, NS 6, etc. or newer)? TIA, jill
23
6415
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 align="center">
3
1993
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 += "menubar=no,"; features += "resizable=no,";
0
9656
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.