home | about | newsletters | contact | advertising | shop | radio | courses | site map

Helping Normal People Get Their Geek On And Live The Digital Lifestyle

Learn About The Benefits Of Membership

Login: Password: Remember me

Standards Compliant “New Window” Link

Posted Jul 15, 2007 by Jason Faulkner  

First of all, I should mention I am heavily opposed to fairly recent trend of sites opening a new browser window when linking to another site. If I want to open the link in another window, I’ll open it in another window.

With my rant out of the way, sometimes it is absolutely essential that you be able to open a new browser window (i.e. enlarged images, links to other sites (when you specify the link will open a new window)), in which case the latest w3C strict specifications do have the Target attribute for the A tag. You could use a transitional language, but these are “dying” specifications, or you could implement a standards compliant “new window” link using java script.

This helpful article shows you exactly how to implement the script in your HTML pages. It is very simple to do and you can easily apply it to your existing pages. If the only thing keeping you from moving to a “Strict” W3C specification is the target attribute, then your problem is solved.

Posted In: Daily Tips

Dominate Your Computer

Profit From The Internet

Premium Information From a Trusted Source

Learn More About Benefits To You

Got The Newsletter?

Exclusive PCMech Content. Sign up and receive our free report: 20 Tips For Becoming a Technology Power User.

NAME:
EMAIL:

Featured Product of The Week

Build Your Own PC

Build Your Own PC - Book/DVD

Now Playing on PCMech Video

Feature ImageLaptop Stand Giveaway

Feature ImageHow-To: Multiple Application Bars In Windows

See All Videos | PCMech Channel Youtube Channel