Forcing Target Attribute Into Link

2002-01-24 Thread Dave Hannum
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

RE: Forcing Target Attribute Into Link

2002-01-24 Thread Steve Oliver
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

Re: Forcing Target Attribute Into Link

2002-01-24 Thread stas
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 -