0

The following code I need to add target= "_blank":

location.href = "@Url.Action("GenericDetailsNew", "Generic"),?GenericID=" + ID;

How do I launch the link in a new tab?

Full code:

'click .detail': function (e, value, row, index) {
                    var ID = row.id
                    location.href = "@Url.Action("GenericDetailsNew", "Generic"),?GenericID=" + ID;
                },
Dhaval Asodariya
  • 558
  • 5
  • 19
Ivin Raj
  • 3,448
  • 2
  • 28
  • 65

0 Answers0