Open links in new window with toolbar at the top - like reddit.com toolbar
Posted
by stolkramaker
on Stack Overflow
See other posts from Stack Overflow
or by stolkramaker
Published on 2010-03-30T13:29:49Z
Indexed on
2010/03/30
16:33 UTC
Read the original article
Hit count: 534
So I want to be able to use jquery or similar to force all external links to be
a. Opened in a new window (I think I have this covered From Here )
$(document).ready(function() {
$('a[href^="http://"]').filter(function() {
return this.hostname && this.hostname !== location.hostname;
}).attr('target', '_blank');
});
b. Opened with a custom toolbar (iframe?) at the top (like the reddit toolbar imgur.com/76YCS.jpg )
© Stack Overflow or respective owner