I have done an extensive research of this problem and still can't get an answer. The following code code works fine in Chrome:
if ($window.localStorage.getItem('adminconsole') == null) {
$window.localStorage.setItem('adminconsole', 'adminconsole');
$window.open('admin.html', 'adminconsole');
}
else {
try {
window.open('', 'adminconsole').focus();
}
catch (error) {
alert(error);
}
}
when I call this code after the admin.html was opened Chrome switches focus to it, but not IE. Any idea how to make it work in IE?
Thanks