Monday, 18 July 2011

Open a new page in a new window

Open the new page in a new window
<a href="http://www.google.ca//">Click me</a>
The jQuery,
     
 $(function(){
   $('a').click(function(){
       $(this).attr('target','_blank')  //add the _blank to the target element in the anchor tag

  });


});

No comments:

Post a Comment