Surya sasidhar
Surya sasidhar

Reputation: 30313

open link in new tab for the imagebutton in asp.net

how to get the open link in new tab for the image button in the asp.net please give me the solution

Upvotes: 0

Views: 6128

Answers (2)

Magnus Johansson
Magnus Johansson

Reputation: 28325

There is no specification in the W3C for opening a page in a new tab. There is one for opening in a new window, with the attribute

target="_blank"

You should stick with that because it's really up to the end user to decide how the web browser should behave. In Internet Explorer, for example, there's the option to either open new windows in tabs or window's. Don't try to force the behavior of the browser to do something other than what the user has decided.

Upvotes: 2

rahul
rahul

Reputation: 187060

You can achieve the same effect using an anchor tag and an image

<a href="somepage" target="_blank">
    <img src="yourimagepath" alt="imagetext" />
</a>

Upvotes: 3

Related Questions