I have an HTML page that incorporates a code iframe
, my problem is that this embedded code has a form, which when completed needs to be opened in a new tab, however this tab is opened inside div
where the iframe
is embedded, I need this new tab to open in the main window.
Important
The iframe page (embedded page) is in the same domain as the main page and I have access to it, so I can put any jquery / javascript code in it.
Iframe code:
<iframe src="http://siteexemplo.com.br/index2.php"scrolling="no" style=" width: 100%; height: 100px; overflow: hidden;"></iframe>
This iframe page contains a form with the following HTML.
Embedded HTML page
<form class="form-signin" action="validacao.php" method="post" target="_self">
<div style="width:60%; float:left">
<input type="password" name="senha" id="inputPassword" style="height:47px" class="form-control" placeholder="Senha" required>
</div>
<div style="width:39%; float:right">
<button class="btn btn-lg btn-primary btn-block" type="submit" ><a style="color:#ffffff; text-decoration:none" >Visualizar</a></button>
</div>
</form>
Can anyone help me?