Open iframe link in the same window and not inside the frame

1

I have a problem, I made an iframe from a .php file on my website, so that styles do not mix with me, it is provisional, this file has a label, the problem I have is that when I clicked it, I opens inside the frame, and I need it to open in the same window, I tried with "_self" but does nothing, only "_blank" but I do not like it as it is, it seems that a window with advertising opens.
Here I leave as arm my iframe:

<?php
$fecha = date("d-m-Y");

switch ($fecha) {
    case "11-09-2018":
	if ($quediaes=="Tue") {
		echo'<center>
					<div class="resp-container">
						<iframe src="/superliga/seleccionindex.php" height="90%" width="400px" scrolling="no" ></iframe>
					</div>
			</center>';
		}
		break;
}
?>
    
asked by MatiPHP 11.09.2018 в 18:04
source

1 answer

2

According to this answer, put the following in the head of the iframe:

<base target="_parent">
    
answered by 11.09.2018 / 18:09
source