Any bans on security do not allow to roam.
Must match protocol , hostname and port .
From https://some.org:1024/how_are_you_dude? You can open any windows, but only https://some.org:1024/all_what_you_want/ will have access to the content ( document , for example).
The rest will get an error:
DOMException: Blocked a frame with origin " http://child_window.host " from accessing a cross-origin frame.
If there is access, it is easy:
console.info(location.origin); // http://ru.stackoverflow.com let w = window.open("http://ru.stackoverflow.com/q/1919", "hello", "width=1500,height=1000"); w.document.querySelector('.form--text').value = 'hello';
If there is no access, try to solve the problem through frames, iFrame.contentWindow.postMessage and window.addEventListener('message', fn); (in the frame window).
Well, or pass the parameters to the URI, as suggested by @CostaRaf.