<TARGET>

I want to be able to click on a link and have it always open a new window even if the link was just clicked on and a window is already open.  When the users clicks on the link again, I want it to open another window.

Can anyone help me?
LVL 2
afpcosAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cabrionetCommented:
Hi

In the link write target="new"
<A href="your_doc.html" target="new">

I think that this is all you need.

Cabrio

0
andreifCommented:
Try JavaScript.
Function WOpen(DocUrl) opens document from address DocUrl in a new window(it's always new).

You need do define a function:

<script>
<!---
function WOpen(DocUrl){
      WinNum = Math.round(Math.random()*100000);
      window.open(DocUrl,WinNum,'');      
}
//-->
</script>

and use it in <a> tag:

<a href=javascript:WOpen('about:blank')>TEST</a><br>
0
andreifCommented:
if you use target="new" this will open a new window, but only one for the first time, but don't opens another window on the second click.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

cabrionetCommented:
The IE will open new browser always. I am not shore about NS.
0
cabrionetCommented:
I have try with NS... it doesnt work. (target=new) But i am always sceptical about java. About 3-5 % of user has java disabled. So if this is not a big site (if links are not generated from a database i would use in all links diferent targets... ) So all the users IS, NS, Java on/off would have a (window party)

Cabrio
0
kllewelynCommented:
after target use "_blank"

target='_blank'

this will force a new window to open on every click.
0
kllewelynCommented:
after target use "_blank"

target='_blank'

this will force a new window to open on every click.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.