how to get the open link in new tab for the image button in the asp.net please give me the solution
如何获取asp.net中图像按钮的新选项卡中的打开链接请给我解决方案
2 个解决方案
#1
3
You can achieve the same effect using an anchor tag and an image
您可以使用锚标记和图像实现相同的效果
<a href="somepage" target="_blank">
<img src="yourimagepath" alt="imagetext" />
</a>
#2
2
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
W3C中没有规定在新选项卡中打开页面。有一个用于在新窗口中打开,具有该属性
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.
您应该坚持这一点,因为最终用户需要决定Web浏览器的行为方式。例如,在Internet Explorer中,可以选择在选项卡或窗口中打开新窗口。不要试图强制浏览器的行为做除用户决定之外的其他事情。
#1
3
You can achieve the same effect using an anchor tag and an image
您可以使用锚标记和图像实现相同的效果
<a href="somepage" target="_blank">
<img src="yourimagepath" alt="imagetext" />
</a>
#2
2
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
W3C中没有规定在新选项卡中打开页面。有一个用于在新窗口中打开,具有该属性
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.
您应该坚持这一点,因为最终用户需要决定Web浏览器的行为方式。例如,在Internet Explorer中,可以选择在选项卡或窗口中打开新窗口。不要试图强制浏览器的行为做除用户决定之外的其他事情。