ho provato ma mi da errore

'window[...].0' è nullo o non è un oggetto