Envy

File this under "Now, why didn’t I think of that?".

Seth Green has come up with a great little piece of DOM scripting that enhances print stylesheets. Basically, once the page has loaded, it loops through all the links in a specified part of the page: if the text of the link isn’t the same as the "href" value of the link, it creates a <span> right right after the link with the class "printMe". Meanwhile, the screen stylesheet has the display value for that class set to "none" while the print stylesheet has the display set to "inline". Voila! The printed version of the page shows all the links written out.

Clever bastard.

Have you published a response to this? :

Previously on this day

21 years ago I wrote Wireless Mall

I’ve just made a nifty little discovery: the mall in Sierra Vista has Wi-Fi.

21 years ago I wrote Budd Blog

Brighton web designer, pal and all-round good guy Andy Budd has joined the blogosphere.

22 years ago I wrote Plustech Walking Technology

That is one cool looking machine. Eco friendly, too.

22 years ago I wrote Why I Hate Star Wars

"I thought it would be funny to go dressed up as Spock".