I have some link, and when I click on button I redirect it with help of event to another page
<div id="link"><a href="javascript:void(0);">Redirect</a></div>
function redirectFromIframe() {
window.top.location.href = "some_link"
}
let link = document.getElementById("link");
link.addEventListener("click", redirectFromIframe, false);
All works fine, but if we want open it in new tab, we need to use next code, since we cannot use target_blank because link is voided
window.open('some_link', '_blank');
So how we can use link from iframe and at the same time open in new tab