# Pavlovia, "TypeError: event in undefined"

**URL:** <https://discourse.psychopy.org/t/pavlovia-typeerror-event-in-undefined/14824>\
**Category:** Online experiments\
**Created:** [July 5, 2020, 11:01pm UTC](https://discourse.psychopy.org/t/pavlovia-typeerror-event-in-undefined/14824 "2020-07-05T23:01:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [July 6, 2020, 12:42pm UTC](https://discourse.psychopy.org/t/pavlovia-typeerror-event-in-undefined/14824/4 "2020-07-06T12:42:38Z")

</div>

Try this solution for hiding the mouse cursor. If it works for you, I’ll add it to my crib sheet.

> [@Hiding mouse cursor in the pavlovia online experiment](https://discourse.psychopy.org/t/hiding-mouse-cursor-in-the-pavlovia-online-experiment/11782/2):
>
> I don’t believe it’s changed in PsychoPy, but I think you might be able to make a code component that will do it. Try adding this javascript code to the beginning of the routine where you want to hide it, or if that doesn’t work, on each frame in that routine: document.body.style.cursor='none'; You may need to add the following code in the next routine to un-hide it: document.body.style.cursor='auto';

---

_[View the full topic](https://discourse.psychopy.org/t/pavlovia-typeerror-event-in-undefined/14824)._
