<script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> // open url in new a window $(document).ready(function(){ $("a").attr("target", "_blank"); }); </script>
$('a[href^="http://"]') .attr("target", "_blank");