Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

target="_BLANK" not maximised / focused

Status
Not open for further replies.

SM777

Technical User
Mar 7, 2001
208
GB
I have links on a page which when clicked open up a second page in another window. This works fine on the first pass, but if I then go back to the index and then click on a different link the link works but the windows is not brought to focus.

e.g.

index.html contains:

<A HREF=&quot;page1.html target=&quot;_BLANK>page 1</A>
<A HREF=&quot;page2.html target=&quot;_BLANK>page 2</A>

If I click on the page 1 link a new window appears. I then click flip back to the index.html page (alt tab, or pressing the opened pages toolbar on the start line). This defocuses page1. Next I click the link to page 2. I can see the title of the page in the toolbar start line changing to page 2 but the window is not brought to focus.

How do I always bring the linked pop up page to the front when clicked? It only does it if the window is closed first and the index page is the only browser window open.
 
I would use a javascript function to open the new window that also included a focus event. Check the javascript forum for opening new windows most scripters already include a check to be sure the window is on top. DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top