Skip to content Skip to sidebar Skip to footer

Javascript Open New Window, But Focus Shoud Remain On Old Window

Objective : I want to open a new window but the focus remain on old window. what I tried : - document.getElementById('test').a

Solution 1:

This behaviour is up to the browser and can't be controlled by JavaScript.

Solution 2:

write onload event of the new window

window.opener.focus();

Post a Comment for "Javascript Open New Window, But Focus Shoud Remain On Old Window"