0
I’m having trouble opening new tab after a confirm
and windows.open
, follows the code:
function dec(){
var matricula = "<?php echo $matricula;?>";
var receita = "<?php echo $receita;?>";
decisao = confirm("Matricula: "+matricula+"\nReceita: "+receita+"\nReceita cadastrada com sucesso!"+"\n\n"+"Deseja imprimi-la?");
if (decisao)
window.open('imprimir_receitas.php?matricula='+matricula+'&receita='+receita, 'blank');
}
After clicking ok the pop-up is locked, ah some way to open this tab without being locked?
Have you tried setting the height and width parameters? Which browser?
– Vanderson Ramos
@Vanderson jpa tried yes with size, for example passing along the parameters the values 'width=200, height=100'. but nothing helped :/
– Rafael Assmann
In all browsers this?
– Vanderson Ramos
@Vanderson yes, in the main firefox and Chrome happens it. IE works but is not fully compatible with my system.
– Rafael Assmann
These two examples are working. Testa ai: - http://jsbin.com/aboluk/2/edit?html,js,output - http://output.jsbin.com/aboluk/148/edit?html,js,output
– Matheus Piscioneri
Guys, I ended up solving this problem using modal.
– Rafael Assmann