Getting OS information for online experiment

Hello everyone,

I am trying to write in code that allows me to save the operating system that a participant is using during the experiment (windows, iOS, etc.) and their screen size. I have figured out how to save their screen size by using the following code


thisExp.addData(“Window Size”, win.size);

But i cannot figure out how to export and save the OS information. Any information on how to do this would be greatly appreciated.


PsychoJS saves the OS automatically, at least the last time I tried it.

Best wishes Jens