0

After reading this thread, I looked around my Google Chrome settings for how to allow javascript to open new tabs without user interaction but I couldn't find the setting. I'm using Google Chrome on my iMac, if it makes a difference.

I tried searching for something using the Chrome Support Site but couldn't find anything that really helped.

Does anyone know how to edit this setting?

Community
  • 1
  • 1
Jordan
  • 445
  • 2
  • 10
  • 21

1 Answers1

0

If I understood your question then, in your core javascript file you can add this:

$(document).ready(function () {
    $("a").click(function () {
        $(this).attr("target", "_blank");
    });
});

Fiddle.

Mohammad Areeb Siddiqui
  • 9,795
  • 14
  • 71
  • 113