I have tried numerous solutions to open multiple tabs in IE 11, but none of them seem to work for me. In Chrome, everything works smoothly with a simple window.open(url) command.
When I try to open tabs using an iterative JavaScript code snippet, only one tab opens instead of the expected several tabs.
for (var i = 0; i < reports.length; i++)
{
url = "./Report/?reportName=" + reportName;
url += "&id=" + "@Model.Header.ID";
ShowInMultipleTabs(url, i);
}
The UrlReferrer must not be null for security purposes within our applications.
One partial solution I found is able to bypass the null UrlReferrer issue but still only opens ONE new tab:
function ShowInMultipleTabs(url, tabCounter)
{
if ((url !== undefined) && (url !== ''))
{
var link = document.createElement('a');
link.href = url;
link.target = "_about";
document.body.appendChild(link);
link.setAttribute("id", "'" + tabCounter + "'");
link.click();
}
}
I am seeking advice on how to make all the tabs display as intended.
Thank you