Open new browser window, not on top

G

Guest

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top