Link Enhancer | JavaScriptSource

Link Enhancer

Jeroen Haan Jun 20, 2007

General

Using this script, outbound links will open in a new window automatically. No need to add anything to the link. The script will also apply a different style to the outbound link to make visitors aware it is an outbound link. You don't have to worry anymore about targets and the appearance, especially if your customers have their own CMS.


Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: linkEnhancer.js


CSS

Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Other

Download the images using the URL below:

Leave a Response

(2 comments)

I like the way it adds the image to all the external link on this page lol! Using this script helped me to tackle an old accessibility problem I had. Thanx

jez jones Jul 31, 2007

Great script! It's like the links in the articles on Wikipedia.

Anonymous Jun 20, 2007