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

new window using css?

Status
Not open for further replies.

Halcrow

Programmer
Aug 24, 2004
76
GB
How can I make an anchor link open in a new window using CSS?
 
You can't using CSS - but why not just use HTML instead?:

Code:
<a href="wibble.html" target="_blank">...</a>

Hope this helps,
Dan
 
why not just use HTML instead?
Why not avoid opening a new window?!

BillyRayPreachersSon is correct - you cannot specify 'open in a new window' using CSS. CSS is for specifying presentational aspects of the site: a new window is more than presentational. And it's best avoid (especially if you intend the site to be accessible or Section 508 / DDA (Disability Discrimination Act - UK) compliant).

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top