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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Page in New Window Always 2

Status
Not open for further replies.

dakota81

Technical User
May 15, 2001
1,691
US
There are many times where I want to use the window.open() command or in other cases I can use the <a target=&quot;new&quot;...> </a> text, but sometimes they pop up in a window that is already opened, like if I click the button twice or something.

Is there a different way to force the link to always come up in a brand new fresh browser window?

Or taking a slightly different approach, can I make the window that the page is loading in move up to the front so it is immediately seen on the screen?


I'm building a small custom app in IE only, so I don't need to worry about cross-browser compatibility.
 
In the window looking, add an onload option in the body tag, can't remember exact syntax but I think it's window.focus()

Jessica [ponytails2]
 
[tt]<a target=&quot;new&quot;...> </a>[/tt]
[tt]<a target=&quot;_blank&quot;...> </a>[/tt]

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
dwarf's got it!


&quot;Why is it always the quiet ones?&quot;

Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
AIM & MSN: robacarp
 
Thanks all, I'll probably be using a combination of the two methods, as some windows I do need to open up through JavaScript (like when I pass URL variables based on input boxes).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top