# Event Handlers Not Firing

**URL:** <https://forum.pinegrow.com/t/event-handlers-not-firing/8876>\
**Category:** Questions\
**Created:** [April 27, 2024, 8:09am UTC](https://forum.pinegrow.com/t/event-handlers-not-firing/8876 "2024-04-27T08:09:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zahra](https://avatars.discourse-cdn.com/v4/letter/z/aeb1de/32.png) [@Zahra](https://forum.pinegrow.com/u/Zahra)\
**Post date:** [April 27, 2024, 8:09am UTC](https://forum.pinegrow.com/t/event-handlers-not-firing/8876/1 "2024-04-27T08:09:03Z")

</div>

I’m having trouble getting JavaScript event handlers to work properly in Pinegrow, but they work fine when I view the site in a web browser. I’ve checked that my JavaScript files are linked correctly and tried both inline and external scripts. Simple click events aren’t even firing in the Pinegrow preview.  
Its frustrating [😔](https://ik-azsolutions.com/) [😔](https://ikdevelopment.co.uk/app-development-nottingham/)

Is this a known issue with Pinegrow’s preview mode, or could I be missing a step in my setup?

---

<div class="post-metadata">

**Author:** ![TechAkayy](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@TechAkayy](https://forum.pinegrow.com/u/TechAkayy)\
**Post date:** [April 27, 2024, 8:15am UTC](https://forum.pinegrow.com/t/event-handlers-not-firing/8876/2 "2024-04-27T08:15:15Z")

</div>

If you are using an external script, then try debugging (breakpoints) the click event via the devtools.

You can open the devtools by right clicking on the pinegrow icon (top left) \> Inspect, or keyboard shortcut cmd/ctrl+shift+c.

---

<div class="post-metadata">

**Author:** ![TechAkayy](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@TechAkayy](https://forum.pinegrow.com/u/TechAkayy)\
**Post date:** [April 27, 2024, 8:17am UTC](https://forum.pinegrow.com/t/event-handlers-not-firing/8876/3 "2024-04-27T08:17:44Z")

</div>

Also, the devtools will log an error if there was an issue with the script src. Can you share your script tag.

---

<div class="post-metadata">

**Author:** ![schpengle](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/schpengle/32/238_2.png) [@schpengle](https://forum.pinegrow.com/u/schpengle)\
**Post date:** [April 27, 2024, 9:20am UTC](https://forum.pinegrow.com/t/event-handlers-not-firing/8876/4 "2024-04-27T09:20:10Z")

</div>

![Screenshot 2024-04-27 at 10.11.42](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/0/039a5a178e31bb7f14349073cf5d5b3994a6c09c.jpeg)

A more basic approach,  
have you enabled _Test Clicks_?

By clicking the icon as shown or via shortcuts listed here.

> **[Keyboard Shortcuts | Pinegrow Web Editor](https://pinegrow.com/docs/master-pinegrow/keyboard-shortcuts/)**
>
> Pinegrow has many useful keyboard shortcuts that can make your work even faster.

as

ALT + click, Test click (on page) or select element if Test clicks are enabled (icon highlighted in green.)
