Hello,
I have a little content management application where the users can insert
hyperlinks via manually coding the href's into the article they are
entering. However, to keep visitors from leaving the site when they click
on these links, I wish to force the TARGET=_blank attribute into those
AM
To: CF-Talk
Subject: Forcing Target Attribute Into Link
Hello,
I have a little content management application where the users can
insert
hyperlinks via manually coding the href's into the article they are
entering. However, to keep visitors from leaving the site when they
click
on these links
You could load this JS function in your body onload event handler:
script language=JavaScript
!--
function targetLinks()
{
var where = _self;
for (var i=0; i=(document.links.length-1); i++)
{
document.links[i].target = where;
}
}
//--
/script
- Original Message -
3 matches
Mail list logo