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

Home Posts Topics Members FAQ

Mozilla v IE window.open

Hi All

I am having a small problem with window.open() obviously something I am
or am not doing.

This is being fired from a subwindow. Everytime I use just the
location.href = "URL" I got a new window the same size as the subwindow
it was launched from.

The code below works in Mozilla by IE still opens a window the same
size as the subwindow

x = screen.width;
y = screen.height;

extWindow = window.open("ht tp://www.stevengould .org/software/cleanup/",
"ext", "toolbar=no , resizable=yes") ;
extWindow.resiz eTo(x, y);
extWindow.moveT o(0, 0);

All ideas will be helpfull

Thanks in advance
--
DaveG
Skøyen - Oslo - Norway
Mar 17 '06 #1
1 1831
DaveG wrote :
Hi All

I am having a small problem with window.open() obviously something I am
or am not doing.

This is being fired from a subwindow. Everytime I use just the
location.href = "URL" I got a new window the same size as the subwindow
it was launched from.

The code below works in Mozilla by IE still opens a window the same
size as the subwindow
You have not provided an url nor a lot of code regarding your problem.

x = screen.width;
y = screen.height;
Your calculation here is irrelevant as most Windows users have the
Windows taskbar present and sometimes other semi-permanent applications
(eg Office Quicklaunch bar). The work area for applications is what
matters here, not the entire screen area.

extWindow = window.open("ht tp://www.stevengould .org/software/cleanup/",
"ext", "toolbar=no , resizable=yes") ;
The way you coded this, your code will request to remove the navigation
toolbar and everything else removed: because the "If you define the
strWindowFeatur es parameter, then the features that are not listed,
requested in the string will be disabled or removed"
http://developer.mozilla.org/en/docs....open#Examples
As soon as there is a blank space, feature parsing/detection is stopped.
So, the window will not be resizable because there is a blank space in
the windowFeatures string list.
"string parameter must not contain any blank space. Each requested
window feature must be separated by a comma inside the character string".
http://developer.mozilla.org/en/docs...and_parameters

"if no size features are defined, then the new window dimensions will be
the same as the dimensions of the most recently rendered window."
http://developer.mozilla.org/en/docs....open#Examples

which is exactly the case here. This is by design too from browser
manufacturers.
The os must have the time to save those position and size data (re:
userdata persistence).
extWindow.resiz eTo(x, y);
extWindow.moveT o(0, 0);


Resizing and moving existing windows is usually turn off by users. If
you get the size+position results you were expecting in Mozilla, it is
only because your advanced setting allow resizing and moving of existing
windows. You can expect MSIE 7 final release to follow Mozilla, Opera,
Safari on this.

Gérard
--
remove blah to email me
Mar 17 '06 #2

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

Similar topics

2
4869
by: Rob | last post by:
Why does the following code NOT work in Mozilla, but it DOES in IE (for Mac) and Safari? <a href="somepage.html" onClick="window.open('somepage.html', 'SomeWindowTitle', 'width=790,height=560, scrollbar=auto, menubar=no');">Enter</a> Please help...thanks
1
2849
by: Emma | last post by:
Hi, I didn't know whether it was best to post this here or on a mozilla-specific newsgroup, but I figured that you have all helped me in the past, so this is a good place to start. I have trawled the newsgroups for information on opening a modal dialog in Mozilla. I am using Mozilla 1.6 and have found that the following piece of code...
7
1673
by: Jonathan | last post by:
Hi I open a new window using a javascript function: function nw(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } which I call thus:
3
2001
by: kaith | last post by:
The following code used to popup a window when I used netscape 4.79. Now I switched to mozilla 1.4 and the window doesn't popup. function newWindow(newContent) { winContent =window.open(newContent,'nextWin','screenX=0,screenY=20,width=600....); winContent.focus(); } ....
3
2082
by: kj | last post by:
This problem is driving me nuts. The code at the end of this post below works fine with IE, but fails with Mozilla. You can see it in action at http://tinyurl.com/2jvo3 With Mozilla 1.4 and 1.6, the function msg works fine if it's installed as an onclick handler for the button, but fails as an onload handler for the page. The error is...
8
2924
by: Nicolás Lichtmaier | last post by:
Hi, some time ago I've written an article about this issue. It explain some differences in Explorer's and Mozilla's JavaScript/DOM. It has recently changed its URL, This is the new one: http://www.reloco.com.ar/mozilla/compat.html Bye! PS: I hope it's useful to someone. I would appreciate any comments and suggestions!
3
1967
by: ReGenesis0 | last post by:
I'm trying to rewrite the existing window using javascript. This works fine in IE- but in Mozilla, after I call a window.open, Mozilla starts wandering around like an alshiemers patient and bumping into doors. Specificly, Mozilla seems to be losing my... functions. Or variables. Except, I've tried alerts with dummy variables, and it...
6
4776
by: Erik Steffl | last post by:
I am trying to create a simple custom web spider using mozilla and javascript, the basic functionality is to open a website and then manipulate it using DOM (possibly opening links etc.). it seems like pretty easy task to do, the only pr0oblem is that I can't figure out how to wait for the website to load - I use mozilla security settings...
0
7746
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...
0
7668
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...
0
8179
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...
1
7736
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...
0
8036
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6358
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5556
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...
0
5258
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...
1
1269
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.