javascript - How to redirect and open new tab in one click -


in page 1 : form , submit page two

page 2 : insert data, open new tab , redirect page one

i'm using

window.open("pdf_order.php?p=<?=$paper;?>","_blank"); window.location = "page1.php"; 

but, it's doesn't work because block popup on browser.

according question, want issue window.open call when arrive on "page two."

you can't, because that's scuzzy websites used do, , whole point of popup blockers. instead, you'll need adjust clickflow you're not trying that.


Comments