Making experiment full-screen part way through

Hi there,

I have an online experiment with a series of Pavlovia surveys at the start. These surveys need the experiment to NOT be in full-screen mode. After the surveys I have a task which I would like to be in full-screen mode. Is there any way of initiating the full-screen window at the start of the task (i.e., halfway through the experiment)? For example, some javascript code I can add to force the window into full-screen using a custom code component?

Thanks in advance for your help.

The code you want is:

psychoJS.window.fullscr = true;
psychoJS.window.adjustScreenSize();