473,408 Members | 1,699 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,408 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 3867
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
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
jinu1996
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...
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...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...

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.