I implemented the logic of work as follows. My js:
function openUrl(evt, Name) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(Name).style.display = "block";
evt.currentTarget.className += " active";
}
My html:
<div class="tab"><button class="tablinks" onclick="openUrl(event, 'Name')">ButtonName</button></div><div id="Name" class="tabcontent"><iframe rc="URL"></iframe></div>
I installed the extension in the browser iframe ignore x-frame-options. The site has sections that open in a new window and not the way I want. When authorization passed for example. Is there a way to make the site fully display as I need?