如何在 Javascript 中检测侧面鼠标点击?
当用户单击鼠标侧面的后退/前进按钮时,是否可以使用 JavaScript 进行检测?据我所知,这些被称为 XButton,至少在 .net 中是这样。这是针对本地安装的应用程序,因此我不需要跨浏览器支持,只需在 IE 中工作即可。
Is it possible to detect using JavaScript when the user clicks the back/forward buttons that are the side of your mouse ? These are known as XButtons as far as I know, in .net at least. This is for a locally installed app so I don't need cross browser support, just something that works in IE.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是不可能的。您将获得的最复杂的鼠标单击事件是向左和向右。
This cannot be done. The most sophisticated mouse click events you will get is left and right.
不,不这么认为,当它到达浏览器时,它已经被转换为按钮绑定的任何操作
No, don't think so, by the time it gets to the browser it's been translated into whatever action the button is bound to