How to open a url in new window without losing the focus of current window . I want to open a new url for every 20 secs of time. I used the following code in a page where the function is called after some time period but not working
var win=window.open(url,'_blank');
window.focus();