Home > Enterprise >  MVC Html.ActionLink open new tab in the background
MVC Html.ActionLink open new tab in the background

Time:09-14

Here is my link and it works fine.

I need my link to open the new tab in the "Background". In other words, I don't want to see the new tab in focus.

 @Html.ActionLink(@durationInSecondsFormatted, "Index", "Player", new { id = item.Id }, htmlAttributes: new { @class = "btn btn-outline-success btn-sm", target = "_blank"})

CodePudding user response:

Their is no way I found in html, Yes but when we click the link by pressing control key it opens the link in new background tab.

  • Related