rusting pipe

New Window Script Redux

Aug 25, 2008

I wrote a tutorial a little while back on writing a script that forces new windows on PDF and external links without the addition of anything extra into the xHTML. Turns out, to no surprise, that IE 6 does something strange with the image that indicates the new window. Check this screen shot out:

So there was some pretty good conversation around how to get this sort of thing to work and I think I found the best way to approach it. Instead of styling the link itself – throw a span at the end of the link and style that. Brilliant.

So if you’re using IE 6, check out the new demo – no breaking.

And if you’d like, here’s the full tutorial: Forcing New Windows on Users Script. Enjoy

Comments

Brad's AvatarI'm Brad Cooper, a user experience designer and front-end programmer with a passion for actualizing visions. I strive to create a piece of art in each site that I put together both visually and technically.

I'm an advocate of web standards and open source.

I work outside Philadelphia, PA and live in Marlton, NJ.

Learn more about me

Contact Me

bradleyjcooper@gmail.com or (856) 316-7128

Previous Tutorials

Unobtrusive Expand and Collapse Navigation

Create a vertical navigation that will expand and collapse to show and hide sub-navigation using only unordered lists and as few class/id names as possible…

Forcing New Windows on Users Script

Launch new windows for PDFs and External Websites without having to add anything into my (x)HTML – a pure behavior that should be separated from my core structure. There have been many attempts at tutorials on this, but I’ve never been happy. Here is my attempt – check out the finished demo.

Shorten document.getElementById

Do you write document.getElementById or document.getElementsByTagName too many times in your javascript to count? How about shortening them into their own easy to use functions?…

Google Feed API Tutorial

Using Google’s new Feed API, I wanted to be able to read in a single feed that pulls all of my blog, twitter, del.icio.us and digg posts…