我如何...右键单击新点击打开? [英] How do I...on right click new tap open?

查看:83
本文介绍了我如何...右键单击新点击打开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hiii

i我在电子商务网站上工作我想在新标签中右键单击打开产品页面

我怎么办... ????? div class =h2_lin>解决方案

使用带有href的超链接或锚标记到要在新选项卡或窗口中打开的链接。此外,使用target =_ blank属性在新窗口或选项卡中打开链接。



打开新窗口或选项卡全部取决于浏览器设置如何打开一个新窗口。



< a href =http://github.comtarget =_ blank> GitHub< ; / a> 


如果用户想要通过右键单击来在新标签页中打开您的产品......他们将右键单击并选择在新标签中打开链接(或其浏览器为此提供的任何支持)。



当用户习惯使用浏览器时,您不应干扰用户体验以及它是如何工作的。如果你干涉它,它只会混淆和骚扰你的用户。如果不是标准行为,用户如何知道右键单击link \ image会在您的网站上执行不同的操作?如果我想通过浏览器的上下文菜单使用并且您的网站因劫持右键而​​干扰了该怎么办?



只需保留您网站的用户体验,网络(以及任何一般的客户端应用程序)都是关于一致的标准,而您的用户希望这样做。


hiii
i am working on eCommerce website i want to open the product page on right click in new tab
how i do...?????

解决方案

Use hyperlink or anchor tag with an href to the link you want to open in a new tab or window. Also, use target="_blank" attribute to open the link in a new window or tab.

Opening a new window or tab all depends on the browser settings on how to open a new window.

<a href="http://github.com" target="_blank">GitHub</a>


If the user wants to open your product in a new tab by right-clicking....they'll right-click and select "Open link in new tab" (or whatever support their browser offers for this).

You shouldn't interfere with the user experience as users are used to their browser and how it works. If you interfere with that it will only confuse and\or annoy your users. How is the user to know that right-clicking on a link\image does something different on your site when that isn't standard behaviour? What if I want to use by browser's context menu and your site interferes with that by hijacking the right click?

Just leave the user experience for your site as it is, the web (and any client app in general) is about consistent standards and your users expect that.


这篇关于我如何...右键单击新点击打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆