# Control-click behaviour using Prototype

**URL:** <https://www.ruby-forum.com/t/control-click-behaviour-using-prototype/139906>\
**Category:** Rails\
**Created:** [June 9, 2008, 12:06am UTC](https://www.ruby-forum.com/t/control-click-behaviour-using-prototype/139906 "2008-06-09T00:06:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4af34b/32.png) [@adam](https://www.ruby-forum.com/u/adam)\
**Post date:** [June 9, 2008, 12:06am UTC](https://www.ruby-forum.com/t/control-click-behaviour-using-prototype/139906/1 "2008-06-09T00:06:27Z")

</div>

Hi all,

Is it possible to use Prototype to add control-click behaviour to a  
link? What I want is to fire one Ajax request if a user clicks on a  
box, and a different request if they control-click on the same box. I  
know this is possible in some JS frameworks (e.g. Mootools), but  
unfortunately I’m limited to Prototype - does anyone know how to do  
this?

Many thanks,  
Adam
