|
by post@madskristensen.dk (Mads Kristensen) via .NET Slave on 4/2/2007 8:37:52 AM
Many websites have started to add a little icon next to external links, so that visitors
know that if they follow it, they will leave the website. Here is a small JavaScript
that adds a class called external to all off-site links on the page. Just
call the function when the page has loaded.
//
Sets a class to all external links
function StyleExternalLinks()
{
var divs = document.getEl
... [ read more ]
|