# Control Click to open new Tab

**URL:** <https://forum.inductiveautomation.com/t/control-click-to-open-new-tab/70491>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 1, 2023, 5:55pm UTC](https://forum.inductiveautomation.com/t/control-click-to-open-new-tab/70491 "2023-03-01T17:55:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eugene49](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@Eugene49](https://forum.inductiveautomation.com/u/Eugene49)\
**Post date:** [March 1, 2023, 5:55pm UTC](https://forum.inductiveautomation.com/t/control-click-to-open-new-tab/70491/1 "2023-03-01T17:55:06Z")

</div>

Is it possible to implement alternative click "Control Click" on Link to open page in new tab?  
instead of current tab.

Thank you.

---

<div class="post-metadata">

**Author:** ![Eugene49](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@Eugene49](https://forum.inductiveautomation.com/u/Eugene49)\
**Post date:** [March 3, 2023, 6:44pm UTC](https://forum.inductiveautomation.com/t/control-click-to-open-new-tab/70491/2 "2023-03-03T18:44:31Z")

</div>

Thank you IA Support:

I had to use button component since link component will inheritly do the click action regardless.

Inside onClick Script:

```auto
def runAction(self, event):
	path = "/devices"
	if event.ctrlKey == True:
		system.perspective.navigate(page=path, newTab=True)
	else:
	    system.perspective.navigate(page=path, newTab=False)

```
