When there’s a link that should open a window or do something different than it’s default behavior it’s best to add the javascript in an event (i.e. onclick) while keeping the regular href statement for users without javascript.
1 |
<a style="cursor: pointer;" href="http://www.link.com/link.php" onclick="event.preventDefault();window.open('http://www.link.com/link.php','','toolbar=no,member=no,location=no,menubar=no,directories=no,scrollbars=yes,status=no,copyhistory=no,resizable=yes,height=740,width=580');"> |