<script type="text/javascript"> $(document).ready(function($) { $('a').attr({ target: "_blank" }); }); </script>