# Scroll to anchor on button onActionPerformed

**URL:** <https://forum.inductiveautomation.com/t/scroll-to-anchor-on-button-onactionperformed/46333>\
**Category:** Ignition\
**Tags:** ignition81, perspective, ignition80\
**Created:** [May 4, 2021, 6:20pm UTC](https://forum.inductiveautomation.com/t/scroll-to-anchor-on-button-onactionperformed/46333 "2021-05-04T18:20:08Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [April 23, 2025, 4:11am UTC](https://forum.inductiveautomation.com/t/scroll-to-anchor-on-button-onactionperformed/46333/7 "2025-04-23T04:11:11Z")

</div>

You would need to use js scrollIntoView with the smooth option

> [@Perspective table cell question](https://forum.inductiveautomation.com/t/perspective-table-cell-question/78112/3):
>
> here i did something similar to use js injection to click a row you can add in the column too to select the right column (gotta click it twice too for edits) something like this in the markdown binding code = """\<img style='display:none' src='/favicon.ico' onload=\" document.querySelector('#"""+value.id+""" [data-row-id=&quot;"""+str(value.number)+"""&quot;][data-column-id=&quot;"""+str(value.column)+"""&quot;]').scrollIntoView(); const cell = document.querySelector('#"""+value.id+…

---

_[View the full topic](https://forum.inductiveautomation.com/t/scroll-to-anchor-on-button-onactionperformed/46333)._
