Very easy HTML Question (Part II): I'm gonna kick myself, I just know it.

I need the simplest way (I’m working in an environment that only allows HTML (no Javascript, etc.) and only some HTML commands at that.). My life would be vastly easier if I could find a way to make



<a href="www.straightdope.com">Font of all wisdom</a> 


to open a NEW window, rather than redirecting the page that the link is on (In other words, I want the link to open a second browser window)

I suspect I’m missing something mind-numbingly obvious. I checked the HTML Goodies page and couldn’t find an obvious answer.

Thanks

Fenris

add target="_blank" in the tag

check out the “target” attribute. I think it’s “_blank” that does that.

::prostrate with grief and confusion::
but it’s Fenris to whom I direct all of my “what do I do now” questions.

please, oh please, for the love of all that’s holy, don’t tell me that Fenris is (gasp) fallible!~!?!?!?.

:smiley:

So in summary…

<a href=“www.straightdope.com” target="_blank">Font of all wisdom</a>

damn coding errors.

that autta be:
:: prostrate … : not the damn :stuck_out_tongue:

And for completeness sake, it should be:

<a href="**http://**www.straightdope.com" target="_blank">Font of all
wisdom</a>

Don’t forget the http:// part of the link.

<a href=“http://www.straightdope.com” target="_blank">Font of all wisdom</a>

Are you sure that you want to open the link in a new browser window? Think twice or three times about that. Many users out there run their browser in full-screen mode, and opening another window just confuses them. When developing web sites or software, I always think of my mom as the target user.

Ahem, I have similar questions all the time. Like, how do you do what I just saw done in this page. Then I look at the source code of that page and find the asnwer right there. Couldn’t be easier.