473,549 Members | 2,580 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"window.ope n" 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 ?

infoWindow=wind ow.open('usgsMa in.html','USGSw indow','status= no,resizable=ye s,scrollbars=ye s');

Jan 16 '07 #1
4 3221

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.

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.


infoWindow=wind ow.open('usgsMa in.html','USGSw indow','toolbar =no,location=no ,directories=no ,status=no,menu bar=no,\
scrollbars=no,r esizable=yes,co pyhistory=no,wi dth=400,height= 300,\
screenX=150,scr eenY=150,top=15 0,left=150');

and insert the values that work for you.
Jan 16 '07 #3

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 ?

infoWindow=wind ow.open('usgsMa in.html','USGSw indow','status= no,resizable=ye s,scrollbars=ye s');
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

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"> <!--
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 title bar and border of one of the VS.NET's copies 1/2 of its height and 1/2 of its width, so I end up with this floating titlebar and border taking up...
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 window. It's a pop-up window in the sense that it's smaller than the man page and is intended to be viewed and then closed. The problem is that if I...
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 don't think anyone was terribly angry or inflamed, there are things I don't like about how I conducted myself in the discussion. I would like to...
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 implementation in our project. The report is launched by a standard hyperlink with a target="blank" to force the new window. The one problem I have...
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 ideas?
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 ACTION="baz_add_action.asp" METHOD="post"> ...here go the Window.open script <INPUT NAME="add<%=p_prod_id%>" TYPE="checkbox" value="ON">
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 open in new tab/window button works for them. Is there some setting I am missing that allows this to feature to work correctly? I don't have any...
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? BR
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...
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...
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...
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...
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...
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...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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...

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.