Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* if a link with valid href has been clicked */
- if (el && el.href) {
- var link = el.href;
- /* Only if it is an external link */
- if (link.indexOf(location.host) == -1 && !link.match(/^javascript:/i)) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement