# Fire click on current position (onMouseOver)

**URL:** <https://forum.inductiveautomation.com/t/fire-click-on-current-position-onmouseover/92943>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [July 9, 2024, 9:33am UTC](https://forum.inductiveautomation.com/t/fire-click-on-current-position-onmouseover/92943 "2024-07-09T09:33:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmadariaga](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmadariaga/32/63201_2.png) [@mmadariaga](https://forum.inductiveautomation.com/u/mmadariaga)\
**Post date:** [July 9, 2024, 9:33am UTC](https://forum.inductiveautomation.com/t/fire-click-on-current-position-onmouseover/92943/1 "2024-07-09T09:33:11Z")

</div>

I'd like to add a onMouseOver event to a table so that it clicks on the position of the mouse. This way, the selection data will be updated when a new row is hovered. How can I do a mouse click from the script?

I'd rather get the row id, or the hovered value, but I reckon that's not an easy task.

---

<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:** [July 9, 2024, 10:04am UTC](https://forum.inductiveautomation.com/t/fire-click-on-current-position-onmouseover/92943/2 "2024-07-09T10:04:10Z")

</div>

Will need some js, here i do someting like that i guess.  
you'll just have to use onhover to trigger something similar.

I find it very weird behavior though, seems like not something you really want to do for user experience idk... Be sure to make these selectors only work when a class/id is applied cuz you definitly dont want this behavior on all tables

> [@Table click and drag to select multiple rows?](https://forum.inductiveautomation.com/t/table-click-and-drag-to-select-multiple-rows/78653/2):
>
> its a bit janky, doesnt always seems to catch the start... but its something its not drawing a sqaure though, that doesnt really work well with scrollable content 
> 
> > **Summary**
> >
> > code = """\<img style='display:none' src='/favicon.ico' onload=\" let start; function onmousestart(ev){ start = ev.target; }; function onmousestop(ev){ let stop = ev.target; var clickEvent = new MouseEvent('click', {bubbles:true, shiftKey:true}); sta…

---

<div class="post-metadata">

**Author:** ![mmadariaga](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmadariaga/32/63201_2.png) [@mmadariaga](https://forum.inductiveautomation.com/u/mmadariaga)\
**Post date:** [July 9, 2024, 10:20am UTC](https://forum.inductiveautomation.com/t/fire-click-on-current-position-onmouseover/92943/3 "2024-07-09T10:20:39Z")

</div>

I used your example of the drag and drop equipment schedule and added downtimeEvents binded to the clicked row. Clicking the row to see the downtimeEvents (machine preferences by color) is annoying as the user only has to drag the row, not click it. That's why I wanted to display the downtimeEvents on hover.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/2/123b0ab7e74d8c9348d2d18f764e3d9801ab76b2.png)

Thanks for the other post, I'll look into it 🙂
