# How do I check whether the mouse cursor is in a stimulus?

**URL:** <https://discourse.psychopy.org/t/how-do-i-check-whether-the-mouse-cursor-is-in-a-stimulus/15092>\
**Category:** Builder\
**Created:** [July 16, 2020, 11:28am UTC](https://discourse.psychopy.org/t/how-do-i-check-whether-the-mouse-cursor-is-in-a-stimulus/15092 "2020-07-16T11:28:37Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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 16, 2020, 1:49pm UTC](https://discourse.psychopy.org/t/how-do-i-check-whether-the-mouse-cursor-is-in-a-stimulus/15092/5 "2020-07-16T13:49:34Z")

</div>

This post might help

> [@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/how-do-i-check-whether-the-mouse-cursor-is-in-a-stimulus/15092)._
