473,396 Members | 1,843 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.

How do I bring a <a TARGET=xxx> window to front if it's already op

I don't know where to ask this question. If you know of a better place to
ask it, please let me know.

I have a main web page containing many links to detail pages. All detail
links open with Target=xxx, so that I only have 1 detail page open at a time.
In other words, if you click on detail line 1, it opens a new internet
explorer window with detail page. You can then alt-tab back to the main
window, click a detail line 2, and it opens the detail in the second window
again. The problem is, that this second window is now behind the main
window. Unless the user knows to alt-tab back to the second window, they
might not realize that the detail is displayed in the background window.
I've had complaints that they want this detail to come back to the foreground
when it displays. Granted, if they would just close the detail window, then
select a new detail line, it would open in the foreground, but I can't force
them to do this.

How can I always force the Target= window to come to the foreground, even if
it was already open in the background?
Aug 14 '05 #1
4 3866
Brian,

If you are talking about ASPNET. A user is in that forever only working with
one page, which interact with the Server. You can have more pages inactive
open at client side (by instance Iframes), however than still you have to
store your information on the Server by instance in the session.variables

I hope this helps,

Cor
Aug 14 '05 #2
Hi, Brian...

Quite simple to solve your problem...

On the detail page just put a simple JScript like below:

<script language="JSCRIPT">
function page_OnLoad()
{
document.all.dummy.focus();
document.all.dummy.style.display = 'none';
}
</script>

Then towards the end of the body you just need to put the following

<body onload="jscript:page_OnLoad()">
....
<input name="dummy" id="dummy" type=text style="width:1px;height:1px">
</body>

And the window will come to front because only ONE window can have the
focus at any time.

Regards,

Paulo

Aug 14 '05 #3
Well, this would work perfectly, but I forgot to mention one piece. I can't
put any coding of any type on the detail page. The detail pages are owned by
a third party, and I don't have access to their code. I can do anything I
want on the main page, but I can't change the code on the detail, so I'm
handicapped there. Whatever I do for a solution has to be done on the main
page.

"MstrControl" wrote:
Hi, Brian...

Quite simple to solve your problem...

On the detail page just put a simple JScript like below:

<script language="JSCRIPT">
function page_OnLoad()
{
document.all.dummy.focus();
document.all.dummy.style.display = 'none';
}
</script>

Then towards the end of the body you just need to put the following

<body onload="jscript:page_OnLoad()">
....
<input name="dummy" id="dummy" type=text style="width:1px;height:1px">
</body>

And the window will come to front because only ONE window can have the
focus at any time.

Regards,

Paulo

Aug 14 '05 #4
Hi Brian,

I just saw your repply today.

I believe (I haven't tested it myself) is to put something like this:

function OpenWindow()
{
w = window.open('http://address.com');
w.focus();
}

It might work.

Regards,

Paulo

Aug 25 '05 #5

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

Similar topics

3
by: Phil Powell | last post by:
header("Location: http://$SERVER_NAME/index.php; Window-target: top""); I am getting a 403 Forbidden upon running this script, which is not what I wanted. Is there a way I can redirect, but at...
2
by: Starry Gordon | last post by:
I've been running some small test programs which seem to indicate something noticed in a larger script, that a function called from onLoad() in the <body> tag will not succeed in creating a window...
6
by: G Dean Blake | last post by:
in my aspx app I am writing a stream that works fine but it replaces what is in the client browser window. The code is as follows: .. .. HttpContext.Current.Response.ClearHeaders()...
12
by: Alan Silver | last post by:
Hello, Newbie alert, so please be patient <g> I ASP Classic, we were used to using tricks like ... <%=strName%> to insert dynamic content into an HTML block. In ASP.NET, you have various...
7
by: Brian Kitt | last post by:
I don't know where to ask this question. If you know of a better place to ask it, please let me know. I have a main web page containing many links to detail pages. All detail links open with...
5
by: Jeff | last post by:
We are using .Net and the wsdl Utility to generate proxies to consume web services built using the BEA toolset. The data architects on the BEA side create XML schemas with various entities in...
2
by: Raf256 | last post by:
Hello, my custom streambuf works fine with output via << and with input via .get() but fails to input via >> or getline... any idea why? -------------------- A custom stream buffer (for...
56
by: Ed Jay | last post by:
I note in an Eric Meyers book that he expresses one goal of using CSS is to eliminate all <brtags. Why? -- Ed Jay (remove 'M' to respond by email)
22
by: amygdala | last post by:
Hi, I'm trying to grasp OOP to build an interface using class objects that lets me access database tables easily. You have probably seen this before, or maybe even built it yourself at some...
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
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...

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.