0
I have a button that calls other 4 buttons via jquery, each button opens a new tab and is in load state until the pdf is automatically downloaded, I need to check if this page has finished pressing to call the other buttons. Any suggestions?
function gerarTodosRelatorios(){
jQuery('.button1').on('click', function (e) {
e.preventDefault();
var target = jQuery(".button2");
var target2 = jQuery(".button3");
var target3 = jQuery(".button4");
var target4 = jQuery(".button5");
target[0].click();
target2[0].click();
target3[0].click();
target4[0].click();
});}
the tab is open after clicking on a link, this link opens a java function that generates a report. <a href="openNotificacaoPostagem.action? acao=print" class="spwBotao button3" target="_Blank">Lot CRM</a>
– Raphael Barauna
You will only be able to "see" a browser tab that you have the reference at the time of creation, so I think you have to change where the tab opens.
– Lucas Queiroz Ribeiro