The target="_blank" is invalid xthml strict. It should be fixed with javascript or jquery.

a javascript example.

<script type="text/javascript">
  <!--
 var e = new Array();
  var i;
  e = document.getElementsByTagName("a");
  for(i=0;i<e.length;i++)
  	if(e[i].className=="newwindow")
  		e[i].target="_blank";
  -->
</script> 

a link can then be: <a href="http://example.com" class="newwindow">example.com</a>

Comments

grn’s picture

mufty’s picture

hi,
instead of using javascript - is there a way how to implement this:

onclick="window.open(this.href); return false;"  

in link`s php code?

dqd’s picture

Status: Active » Closed (won't fix)

closed since 2 years inactivity. Latest D6 version is 2.9. For any need please create a new issue for latest D6 version.