I am afraid the case you are describing cannot be achieved due to browser restrictions. Attempting to invoke window.open
without user interaction(click
event) will be blocked by the browser for security purposes.
This being said, I am not aware of any workarounds you can use to reach the desired effect. Please have in mind that even if a workaround exists it will most likely be browser-specific and not a general solution.
I hope this helps.