# Hide mouse cursor in online experiment

**URL:** <https://discourse.psychopy.org/t/hide-mouse-cursor-in-online-experiment/5862>\
**Category:** Online experiments\
**Created:** [November 18, 2018, 1:31pm UTC](https://discourse.psychopy.org/t/hide-mouse-cursor-in-online-experiment/5862 "2018-11-18T13:31:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![YuanboBQ](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/yuanbobq/32/4715_2.png) [@YuanboBQ](https://discourse.psychopy.org/u/YuanboBQ)\
**Post date:** [November 18, 2018, 1:31pm UTC](https://discourse.psychopy.org/t/hide-mouse-cursor-in-online-experiment/5862/1 "2018-11-18T13:31:36Z")

</div>

Hi everyone. Is it possible to hide mouse cursor in online experiment using psychopy3.

---

<div class="post-metadata">

**Author:** ![jretz](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@jretz](https://discourse.psychopy.org/u/jretz)\
**Post date:** [July 15, 2019, 11:58am UTC](https://discourse.psychopy.org/t/hide-mouse-cursor-in-online-experiment/5862/2 "2019-07-15T11:58:59Z")

</div>

Hello - I have the same question - did you ever find out whether this was possible or how to do it? It looks like we can’t set the position of the mouse, but it would be ideal if I can hide the mouse until the participant is required to respond!

Thanks

---

<div class="post-metadata">

**Author:** ![YuanboBQ](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/yuanbobq/32/4715_2.png) [@YuanboBQ](https://discourse.psychopy.org/u/YuanboBQ)\
**Post date:** [July 16, 2019, 7:50am UTC](https://discourse.psychopy.org/t/hide-mouse-cursor-in-online-experiment/5862/3 "2019-07-16T07:50:34Z")

</div>

Hi, @jretz, I did not find the solution to hide the mouse cursor using the online experiment. The code `win.mouseVisible = False` dose not work.

---

<div class="post-metadata">

**Author:** ![xiao\_ling](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/xiao_ling/32/5889_2.png) [@xiao\_ling](https://discourse.psychopy.org/u/xiao_ling)\
**Post date:** [October 3, 2019, 8:07pm UTC](https://discourse.psychopy.org/t/hide-mouse-cursor-in-online-experiment/5862/4 "2019-10-03T20:07:01Z")

</div>

Hi YuanboBQ  
This code might work:  
your\_mouse = event.Mouse(visible = False)  
If you call “event.Mouse()” to make your mouse, note that it has a “visible” arg, whose defult is True, so set it False if you would like to hide the mouse cursor.

---

<div class="post-metadata">

**Author:** ![SimonM](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@SimonM](https://discourse.psychopy.org/u/SimonM)\
**Post date:** [April 23, 2020, 11:04am UTC](https://discourse.psychopy.org/t/hide-mouse-cursor-in-online-experiment/5862/5 "2020-04-23T11:04:07Z")

</div>

Hi all,

for me, the solution by @xiao_ling did not work, but in a related post I found the solution. Since I online found this conversation and only much later the one with the solution (at least for me), I share it here:

> [@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';

---

<div class="post-metadata">

**Author:** ![Joanne](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@Joanne](https://discourse.psychopy.org/u/Joanne)\
**Post date:** [October 23, 2020, 2:22pm UTC](https://discourse.psychopy.org/t/hide-mouse-cursor-in-online-experiment/5862/6 "2020-10-23T14:22:10Z")

</div>

> [@Hiding mouse cursor in the pavlovia online experiment](https://discourse.psychopy.org/t/hiding-mouse-cursor-in-the-pavlovia-online-experiment/11782/2):
>
> document.body.style.cursor=‘none’

The javascript worked for me! Thanks
