-5

I am trying to open link in new tab .

<a href="http://www.google.com" target="_blank">Visit Here</a> 

This is the way i can open in new tab changing the tag.But i want to open in new tab by changing css. I tried using

target-name:new;
target-new:tab;

but this is not working .Can some one tell me how to open href in new tab by changing in css.

DaniP
  • 37,813
  • 8
  • 65
  • 74

1 Answers1

1

try this for jquery..

<script type="text/javascript">
$(document).ready(function(){
$("a").each(function()
 {
  $(this).attr("target","_blank");
  });
});
</script>
Sarath
  • 2,318
  • 1
  • 12
  • 24