# Perspective Mouse Click & Drag

**URL:** <https://forum.inductiveautomation.com/t/perspective-mouse-click-drag/28583>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 26, 2019, 1:55pm UTC](https://forum.inductiveautomation.com/t/perspective-mouse-click-drag/28583 "2019-09-26T13:55:07Z")\
**Posts on this page:** 1\
**Showing post:** 44

<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:** [November 7, 2022, 10:37am UTC](https://forum.inductiveautomation.com/t/perspective-mouse-click-drag/28583/44 "2022-11-07T10:37:33Z")

</div>

ahh yes, it doesnt.  
Well not as you would expect atleast. It will not run on load.

A workaround is to put your script in onload of an image. I did something like that here.

> [@Javascript inject in Perspective... have fun](https://forum.inductiveautomation.com/t/javascript-inject-in-perspective-have-fun/65805/5):
>
> Gonna try to keep this topic updated with all my cool injectings stuck_out_tongue Version 8.1.22 svg clicker wink

Becareful though... running js scripts onload can break the designer. (ex: don't do an alert)

```auto
"<img style='display:none' src='/favicon.ico' onload=\" your script \"></img>"

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-mouse-click-drag/28583)._
