开发者

Context menu in web applications, yay or nay?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜