Wanna know how to make all external links on your Ning open in a new window, everytime? We'll here's how you do just that.
Add this to your custom Code box (if you're Ning Plus or Ning Pro)
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("a[href*='http://']:not([href*='http://yourdomain.com'])").attr("target","_blank");
jQuery("a[href*='https://']:not([href*='https://yourdomain.com'])").attr("target","_blank");
});
</script>
Don't forget to change yourdomain.com with YOURDOMAIN.COM
Replies
that's a great tip. I use as similar code and works a treat. However, do you think there is a way to "exclude" specific external links? for example, can you force a specific external link to open in the same widow?
thank you!
@spyro hmmm i'll have to think on that one a minute
@Garfield...no problemo homey
Great man, thanks a bunch. Works perfect.
Seth
www.moviesamongfriends.ning.com
Any possible fix for this maybe? I dunno!