Link opening in a new window

Asked

Viewed 191 times

2

I have an image, which is a link to the index(home) page. It turns out that when I click on the link, the browser opens another window, but it should still open.

How do I resolve this? Below my code:

<a href="/Home/Index/" title="Twitter"
  target="_blank"><img src="@Url.Content("~/Images/logo-agaxtur.jpg")" class="logo" />
</a>
  • You didn’t enter your code

1 answer

3

I found the problem, which would be because of the attribute target defining when an HTML element <a> there is a custom destination, of which, in my case, it possessed the value _blank. Removal of the attribute was enough for the link to function normally again.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.