473,416 Members | 1,836 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,416 software developers and data experts.

"window.open" question

In Firefox this opens a full size window (maximized) . In IE it opens
the partial window requiring user to click restore (upper right) to
maximize. What am I missing ?

var
infoWindow=window.open('usgsMain.html','USGSwindow ','status=no,resizable=yes,scrollbars=yes');

Jan 16 '07 #1
4 3197

ar*****@hiwaay.net wrote:
In Firefox this opens a full size window (maximized) . In IE it opens
the partial window requiring user to click restore (upper right) to
maximize. What am I missing ?
That different browsers have different methods to determine the default
size of pop-ups. They also provide users with different levels of
control over what you can do with pop-ups like removing features,
resizing, raising, lowering, etc.

Some will also force pop-ups to open in a new tab. The best thing to
do is not attempt to open a pop-up at all, just navigate to the page.
That way, users without scripting wont be disadvantaged. If the user
wants the content in a new tab or window, they'll do that themselves.
You might consider placing the content in the existing page.
--
Rob

Jan 16 '07 #2
On 15 Jan 2007 17:20:45 -0800, ar*****@hiwaay.net wrote:
In Firefox this opens a full size window (maximized) . In IE it opens
the partial window requiring user to click restore (upper right) to
maximize. What am I missing ?
The parameters that define the x/y dimensions and offset. When you
leave them out, the browser will substitute its own defaults.
Different browsers, different defaults.

Try:

var
infoWindow=window.open('usgsMain.html','USGSwindow ','toolbar=no,location=no,directories=no,status=no ,menubar=no,\
scrollbars=no,resizable=yes,copyhistory=no,width=4 00,height=300,\
screenX=150,screenY=150,top=150,left=150');

and insert the values that work for you.
Regards,
Frank
Jan 16 '07 #3
dd

ar*****@hiwaay.net wrote:
In Firefox this opens a full size window (maximized) . In IE it opens
the partial window requiring user to click restore (upper right) to
maximize. What am I missing ?

var
infoWindow=window.open('usgsMain.html','USGSwindow ','status=no,resizable=yes,scrollbars=yes');
That's not actually opening a maximized window, even in Firefox.
What's happening is that when Firefox opens new windows, it
chooses the same size as the window that opened it. With IE,
the window opens the same size as the last time IE was closed.

You can verify this by playing around with any website and
right-click on a link and select "open in new window".

With IE, close all your IE's except for one, resize it to an unusual
size, then close it. Now open a new IE, maximize it, visit a site and
then right-click on a link and open in new window. You'll see the
new window as the same unusual size you last clsoed with. Same
trick doesn't work with Firefox, it just inherits the size of the
window it's spawned from.

If the window you want to open is opening content of your own
authoring, then you can make it resize to whatever you want.
You can't "maximize" it, but you can make it as big as possible.
Using the properties screen.width and screen.height you can
use the self.moveTo(x,y) and self.resizeTo(x,y) functions to move
to zero,zero and resize to maximum.

Jan 16 '07 #4
Thanks to all. I will try your suggestions ASAP.... which may be a day
or so.

Jan 16 '07 #5

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

Similar topics

3
by: Shiperton Henethe | last post by:
Hi Can anyone tell me how to open up a new normal, full-sized browser window from a small popup window? I'm using something like this. <script language="javascript"> <!--
5
by: Brandon Potter | last post by:
Forgive me if this has already been covered... I use dual displays and have 2 - 3 Visual Studio .NET 2003's open at the same time, however, without fail, at some point during my session, the...
3
by: JohnEGee | last post by:
Hello, all, and TIA for any help you can offer. I've searched the Internet for answers and have finally come here. I've created a page (several, actually) with a link that opens a pop-up...
1
by: Steve Jorgensen | last post by:
I know some of you here were following involved with, or annoyed with the volume of traffic in the recent thread I started called "Open Question...". I'm posting this message because, though I...
2
by: Kevin Frey | last post by:
We have a web application that, for the purposes of reporting, launches a new window to display the contents of the report in (PDF format). This is implemented using a custom IHttpHandler...
5
by: lindanr | last post by:
In ASP.NET 2005 I have an onblur="window.close()" javascript event in the <body> tag. When I click on the window's scrollbar, the window closes. The same code works fine in ASP.NET 2003. Any...
1
by: kbarrios | last post by:
Hi, I am working with VBScript and I put a "window.open" inside a "form action post" due that I am handing a "checkbox" on it, but the "window.open" doesn't work: <FORM...
1
by: R Reyes | last post by:
Hi, For some reason, the website I made does not open pages in a new page whenever I right-click "Open in New Tab" or "Open in New Window". But, as soon as I navigate to any other website, the...
4
by: jodleren | last post by:
Hi all I have a file I open in a smaller window, like this: <a href="#" onclick="window.open.... but it also causes the main window to jump to the top. What have people done to avoid that?...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.