I’m trying to open an inactive dialog window, that the opener is still getting focused during and also after the new window opens.
Is it possible?
I’ve tried to:
- Call
opener.focus()
immediately, no effect; - Call
opener.focus()
insideload
event handler, no effect; - Call
setTimeout(() => opener.focus(), 0)
insideload
event handler, works but the new window still captures the focus for a sort moment; - Use
alwaysLowered=yes
, the new window still gets focused and it’s impossible to bring it back to the top of opener.