Page 1 of 1

Need some quick html help

Posted: 2005-10-04 10:54pm
by Superman
When making a link, I know the <A HREF=">site</A> code. What I don't know is how to get it so the site will open in a new browser window. Anyone know?

Posted: 2005-10-04 11:26pm
by phongn

Code: Select all

<a href="foo" target="_new">bar</a>

Posted: 2005-10-04 11:30pm
by Exonerate
Isn't it

Code: Select all

target="_blank"
? Or does _new also work.

Posted: 2005-10-05 05:30am
by Dalton
Either or, I think.

Posted: 2005-10-05 06:16am
by WyrdNyrd
You should use "_blank". "_new" will create a new window called "_new", and any subsequent links pointing to "_new" will re-use the same window (which may be what you want, for some circumstances). Whereas "_blank" will always create a new window.

The spec is here.

Posted: 2005-10-05 10:32am
by phongn
Mea culpa, WyrdNyrd is correct.