How to redirect URL to new window?

H

Hans Kesting

How to redirect URL to new window?

From server-side you can only redirect to a different URL in the same
window. You need client-side help:

<a href="...." TARGET="otherwindow">.....</a>

javascript:window.open("url", "target");
(if I didn't mix the params)

Hans Kesting
 
H

Hans Kesting

Correct but clarification is called for. The _blank attribute value should be
used and the value of the href attribute is the page to be loaded in the new
window.

<a href="..." target="_blank">Link Text</a>


<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

You don't *need* the "_blank", you can use other predefined names
(_parent, _top, _self), or supply your own. If you supply your own
name, multiple clicks on this link or other links (with the same
target) will reuse this window.
When you use "_blank" each click will open a new window. This might or
might not be what you want.

Hans Kesting
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,614
Members
45,293
Latest member
Hue Tran

Latest Threads

Top