Hiding mouse cursor in the pavlovia online experiment

Hello,

Is this code specifically for online experiments? Question is that I am trying to make this code work on the builder version but it gives me an error saying:

“document.body.style.cursor=‘none’;
NameError: name ‘document’ is not defined”

The experiment I am currently working on has a polygon component that is used as a color change for the background (based on this post here).

Could the polygon be the possible reason why the code is not working on the builder?

Also, I have not tested it on Pavlovia right now, but will be able to do so next week. Just wanted to find out possible reasons why it is currently not working on the builder or if I am doing something wrong.

Any feedback is appreciated :slight_smile:

Thank you!