开发者

Context menu in web applications, yay or nay?

开发者 https://www.devze.com 2023-02-25 11:26 出处:网络
There have been a few things in web app\'s that I don\'t like. First and foremost is not having a right click context menu. I\'m so used to right clicking on an item in a l开发者_StackOverflow社区ist

There have been a few things in web app's that I don't like. First and foremost is not having a right click context menu. I'm so used to right clicking on an item in a l开发者_StackOverflow社区ist and doing an action. So I've had a browse around, and it's certainly doable here's an example.

My question is, are there reasons not to do this? I can't think of a single web site I've been to that uses a context menu like this. Is that just an historical convention, or is there something else?

Thanks


I don't think its so much as historical convention, more than in order to catch the right-click event you basically have to override/ignore the web browser's default functionality for right-clicking.

That being said it absolutely can be done via Javascript - here is one example ( i haven't used this, but just did a quick Google search ):

http://luke.breuer.com/tutorial/javascript-context-menu-tutorial.htm


Context menus are an excellent tool for web applications. The issue is many Mac users are not used to right-clicking.

0

精彩评论

暂无评论...
验证码 换一张
取 消