Tag Info

Hot answers tagged


This article describes an old trick for making certain links open in a new tab. Just append the url for any link you want to open in a new tab with #openinnewtab, and add the following javascript code (master page would be best): $(document).ready(function() { $('a[href$="#openinnewtab"]').attr('target', '_blank'); });


Write a script to with quoting classnames. get the classname where ever u want to apply this. Here is the example $(function () { $(".classname a").each(function (i) { $(this).attr('_target', "blank"); }); }); Load this script into master page.

Only top voted, non community-wiki answers of a minimum length are eligible