Today's Woot — iPod+HP 40GB $319.99 after $50 rebate — You have 'til midnight.

JavaScripte

Link Target Preferences

When your site links to external sites, there’s no established convention about whether the link should open in the same window or in a new window, and there are users who prefer both methods. In case you want to be flexible, here’s a Link Target Preferences script from Danish blogger Joen Asmussen that provides a checkbox that affects the behavior of all of the links on a page.

I’m of the opinion that browsers should determine preferences like this, and I’m a bit annoyed when sites make the decision for me, but I’m all for flexible alternatives like this, and it’s a good example of JavaScript improving the user experience.

 

Permalink | Email this | Comments [2]


Recent Entries

 » JavaScript Markdown (12/27/2004)
 » Another JavaScript Quick Reference (12/22/2004)
 » Link Target Preferences (12/22/2004)
 » Adding URLs to printed pages (12/20/2004)
 » Sliding List Menu (12/20/2004)


(Add your comments)

Reader Comments

1. Posted Dec 22, 2004, 7:19 PM ET by Chrystie

I'd like to thank you for posting whether or not to place links on one's web site, taking away the vistor's decision on whether to open in a new browser or not. I've been so indecisive over this, muleing many times just on this very issue. Using the adage, "when in doubt, don't" is something I should have heeded to myself, and thanks to reading your weblog on this issue, I will from here on out leave it to my vistors.

Thanks again!

2. Posted Dec 23, 2004, 8:45 AM ET by Nate

['there�s no established convention about whether the link should open in the same window or in a new window']

This is simply not true. The W3C [www.w3c.org] has removed the specification for link targets for all A tags, except when targeting within a frameset. If you adhere to any sort of web standards, then this is a familiar debate. However, according to the standards community, A tags with the target attribute are depricated (except where pushing content into framesets).

Add your comments

Please keep your comments relevant to this blog entry: inappropriate or purely promotional comments may be removed. Email addresses are never displayed, but they are required to confirm your comments. To create a live link, simply type the URL (including http://) or email address and we will make it a live link for you. You can put up to 3 URLs in your comments. Line breaks and paragraphs are automatically converted — no need to use <p> or <br> tags.







Do you want us to remember your personal information for next time?
   


   

Advertisement 

SPONSORED TEXT LINKS

Submit Your Site
To the Morrison Directory.
A web directory that covers
almost every area.

IceRocket —
A new way to search.
www.IceRocket.com

Visit circuitcity.com today for all
the latest satellite radio gear —
everything from the XM MyFi
to the Sirius Sportster package.

Get your own text link here.

RECENT COMMENTS


MOST COMMENTED ON
(past 60 days)


WEBLOGS, INC. NETWORK

Consumer
Autoblog
Blogging Baby
Engadget
Gadling
hack a day
Joystiq
Luxist
TUAW (Apple)
Technology
Apple (Unofficial)
CSS
Digital Photography
Flash Insider
Google (Unofficial)
Grid Computing
JavaScript
Microsoft (Unofficial)
Office
Open Source
Peer-to-Peer
Photoshop (Unofficial)
RSS
SAS (Unofficial)
Search Engine Marketing
Social Software
Spam
Tablet PCs
VoIP
Yahoo (Unofficial)
Wireless
Bluetooth
Engadget: Cellphones
Engadget: GPS
RFID
Ultra Wideband
WiFi
The WiMAX Weblog
Engadget: Wireless
Wireless Dev
Wireless
Video Games
Blogging E3
Engadget: Gaming
Joystiq
Playstation 3
Video Games
Xbox 2
Media & Entertainment
Art
Design
Digital Music
Documentary Film
Droxy (Digital Radio)
Independent Film
Magazine Design
Nanopublishing
Business
The Mortgages Weblog
Online Finance
Outsourcing
Life Sciences
The Cancer Blog
Medical Informatics
Telemedicine
Personal
Brian Alvey
Jason Calacanis
Blog Maverick
Gordon Gould
Judith Meskill
Events
Blogging E3
Blogging ETech
Future of Music
Blogging Milken
Blogging Sundance
Blogging Web 2.0
Other
Weblogs, Inc.