jquery snip -- open link in new window

/ Published in: JavaScript
Save to your folder(s)

Copy this code and paste it in your HTML
  1. $(function(){
  2. $('a.new-window').click(function(){
  3. window.open(this.href);
  4. return false;
  5. });
  6. });

URL: http://www.thefutureoftheweb.com/blog/target-blank-xhtml11

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.