To open external links in new window in Javascript you can use the following snippet.
Sample Javascript
$('a[rel="externalLink"]').click( function() { window.open( $(this).attr('href') ); return false; });
All the Code Snippets and Samples you need
To open external links in new window in Javascript you can use the following snippet.
$('a[rel="externalLink"]').click( function() { window.open( $(this).attr('href') ); return false; });
You must be logged in to post a comment.
RT @CodeSnippetsNET: Open external links in new window in #Javascript http://t.co/xoLkf2a5lc #js #jquery #php #html
RT @CodeSnippetsNET: Open external links in new window in #Javascript http://t.co/xoLkf2a5lc #js #jquery #php #html