There is a way in JS to open window and close it immediately, that it will not open in new tab , I just want want to open a window (like in background if possible ) do some check on it and immediately close it, without the effect that the new tab is open , is it possible?
Something like this but without the effect that the window is opened...
var popup = window.open("http://www.google.com");
popup.close();
UPDATE: Here is solution which I found but it's flicking sometimes and I want to avoid it...
function goNewWin() {
var TheNewWin = window.open("http://www.yahoo.com", 'TheNewpop', 'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1');
TheNewWin.blur();
TheNewWin.close();
}