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

Open new browser window, not on top

I'm relatively new to C# and need to maintain an application that opens a new
browser window with a URL like this:

"javascript:window.open(popupRpts.aspx','popupRpts ','width=810,height=600,resizable = yes,scrollbars = yes,toolbar = yes,menubar = yes');"

It works, but the calling window, which shouldn't close, remains on top. I
can see the popup flash on top, then the calling window apparently processes
something else after the Response.Redirect, and regains the top position.

The Redirect is called by Infragistic's UltraWebTree. Is there any way to
force the new window on top? I can't find any Javascript syntax that might,
nor can I find what processing might occur after the new window is created.

TIA for thoughts, experience...

Jon Angel
HHS
Nov 17 '05 #1
1 1989
When you open the new window can you keep a reference to the newly opened
window i.e.

var objWin = window.open();

then you can just call objWin.focus() to bring the new window to the front.
If you can't find somewhere to run this you could always use a setTimeout
JavaScript call to do the work for you after a small timeout, either in the
calling page or the newly opened page. Of course if you use the timeout in
the newly opened page you will need to say this.focus() instead I believe.

Hope that helps
Mark

"Jon Angel" wrote:
I'm relatively new to C# and need to maintain an application that opens a new
browser window with a URL like this:

"javascript:window.open(popupRpts.aspx','popupRpts ','width=810,height=600,resizable = yes,scrollbars = yes,toolbar = yes,menubar = yes');"

It works, but the calling window, which shouldn't close, remains on top. I
can see the popup flash on top, then the calling window apparently processes
something else after the Response.Redirect, and regains the top position.

The Redirect is called by Infragistic's UltraWebTree. Is there any way to
force the new window on top? I can't find any Javascript syntax that might,
nor can I find what processing might occur after the new window is created.

TIA for thoughts, experience...

Jon Angel
HHS

Nov 17 '05 #2

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

Similar topics

18
by: Paul | last post by:
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page...
6
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page...
2
by: venkatesh | last post by:
Hi Members, I have used the below mentioned code to open a html page in a new browser. The window size is 200 x 300. In that browser, I've given code to open another browser of the same size....
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
10
by: David McCulloch | last post by:
The following code opens a new window, but the "resizeTo" doesn't resize it. Why not? (Don't ask why I simply did not open the window with the new size....my original problem was how to open a...
2
by: nntp | last post by:
Are there other ways to open multile windows at once? <SCRIPT language="JavaScript"> function open1() { var open1 = window.open('http://google.com/CheckEnviro.pl','','scrollbars=yes,height=600...
29
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the...
3
by: Bob | last post by:
I am trying to create a popup page (to act as a menu) from a parent page. When the parent page (index.jsp) calls my popup function (see below) it will properly open the correct size browser window...
6
by: Mateo | last post by:
Hi! I tried to open page in new window with window.open(...) method. open() method supports fullscreeen mode, but I would like to open new maximized window with tiltle bar only.... Any idea...
7
by: Toccoa | last post by:
After considerable googling - I mean searching with Google(r) - I could not find javascript on a button or <a href=... to close a window in the latest versions of IE and FireFox. There seemed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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...
0
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,...

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.