# Onclick does not trigger on middle mouse click?

**URL:** <https://forum.inductiveautomation.com/t/onclick-does-not-trigger-on-middle-mouse-click/95835>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 11, 2024, 9:11am UTC](https://forum.inductiveautomation.com/t/onclick-does-not-trigger-on-middle-mouse-click/95835 "2024-09-11T09:11:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![louagejasper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/louagejasper/32/86311_2.png) [@louagejasper](https://forum.inductiveautomation.com/u/louagejasper)\
**Post date:** [September 11, 2024, 9:11am UTC](https://forum.inductiveautomation.com/t/onclick-does-not-trigger-on-middle-mouse-click/95835/1 "2024-09-11T09:11:33Z")

</div>

Question,

I see [here](https://docs.inductiveautomation.com/docs/8.1/appendix/reference-pages/perspective-event-types-reference#mouse-events) that onClick is 'Fired when a mouse button is pressed'. I would assume that is also when the middle mouse button get's pressed. However, I don't get this to work, I simply do not see an event when I click with the middle mouse.

Did anyone manage to get this working?

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [September 11, 2024, 9:25am UTC](https://forum.inductiveautomation.com/t/onclick-does-not-trigger-on-middle-mouse-click/95835/2 "2024-09-11T09:25:17Z")

</div>

Only works with onpointerup (or down).

It seems weird you want to catch this event though, what are you gonna do with it? xd

---

<div class="post-metadata">

**Author:** ![louagejasper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/louagejasper/32/86311_2.png) [@louagejasper](https://forum.inductiveautomation.com/u/louagejasper)\
**Post date:** [September 11, 2024, 9:39am UTC](https://forum.inductiveautomation.com/t/onclick-does-not-trigger-on-middle-mouse-click/95835/3 "2024-09-11T09:39:30Z")

</div>

Thanks!  
On other websites it opens your navigation in a new tab when you click with middle mouse, so I wanted to reproduce that default behaviour.
