Hello,
I've been trying to put a listener on the window size but it always get the main window.
Does anyone knows how to access the "document" or "window" variable of the new window ?
Even document.getElementById() doesn't work in a useLayoutEffect when trying to get a DOM element in that new page.
Thanks :)
Hello, I've been trying to put a listener on the window size but it always get the main window. Does anyone knows how to access the "document" or "window" variable of the new window ? Even document.getElementById() doesn't work in a useLayoutEffect when trying to get a DOM element in that new page. Thanks :)
New window :
NewWindowContent