Open All External Links In Your Blog In New Window
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("a[href*='http://']:not([href*='"+location.hostname+"']),[href*='https:// ']:not([href*='"+location.hostname+"'])").attr("target","_blank").attr("title","Opens new window").addClass("external");
});
</script>
Friends Insert The Above Piece of code in your blog by going to edit HTML and Pasting it before </head> tag
It Will Open All External Links In Your Blog In New Window
No comments:
Post a Comment