I am trying to use the "window.open" method to open a URL in a new window. This is my code and it is not working, it keeps opening the URL in the same tab.
Let me know if there is anything I am doing wrong.
function checkVersion() {
var msg = "";
var ver = getInternetExplorerVersion();
if (ver > -1) {
if (ver >= 8.0)
msg = "You're using a recent copy of Internet Explorer."
else
msg = "You should upgrade your copy of Internet Explorer.";
}
if (msg != "") {
alert(msg);
window.open('http://windows.microsoft.com/en-us/internet-explorer/download-ie', '_blank');
window.focus();
}