# Perspective - Menu Tree - Get target property of clicked item

**URL:** <https://forum.inductiveautomation.com/t/perspective-menu-tree-get-target-property-of-clicked-item/106587>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 22, 2025, 6:18pm UTC](https://forum.inductiveautomation.com/t/perspective-menu-tree-get-target-property-of-clicked-item/106587 "2025-05-22T18:18:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jparsons](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@jparsons](https://forum.inductiveautomation.com/u/jparsons)\
**Post date:** [May 22, 2025, 6:18pm UTC](https://forum.inductiveautomation.com/t/perspective-menu-tree-get-target-property-of-clicked-item/106587/1 "2025-05-22T18:18:41Z")

</div>

Is there a property that I can use to get the target of whatever item was clicked in a menu tree?

For example, lets say the 1st tier, 2nd item was clicked in the menu tree. I want to send that target to a variable. Honestly, even if there was just a number associated with each individual item I could make it work with that as well.

---

<div class="post-metadata">

**Author:** ![jparsons](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@jparsons](https://forum.inductiveautomation.com/u/jparsons)\
**Post date:** [May 22, 2025, 6:24pm UTC](https://forum.inductiveautomation.com/t/perspective-menu-tree-get-target-property-of-clicked-item/106587/2 "2025-05-22T18:24:05Z")

</div>

I found it. I created a script and used "event.target"

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 22, 2025, 6:33pm UTC](https://forum.inductiveautomation.com/t/perspective-menu-tree-get-target-property-of-clicked-item/106587/3 "2025-05-22T18:33:47Z")

</div>

I think you can mark your own answer as "Solution" to save people staying up late worrying about your question!
