473,379 Members | 1,191 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,379 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 3863
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.