0

I am trying to redirect new window after form auto submission but being blocked by the different browsers' pop-up blockers? without any click event If auto submission happened then how to redirect new window without popup blockers.

<form method = "post" action="securedurl" target="_blank" name="f1">
document.f1.submit()
</form>
  • If you could avoid popup blockers, then all the popup writers would use that method, and popup blockers wouldn't be useful. – Barmar Mar 17 '17 at 18:58
  • Did you try with `submit` button ? – Rayon Mar 17 '17 at 18:58
  • Why do you have Javascript inside a `
    ` instead of inside `
    – Barmar Mar 17 '17 at 18:59
  • @Barmar Yes, but still, even today I get the occasional pop-up despite having a blocker. So there have to be some best practices or tricks out there to maximize your chances of not being blocked. – jered Mar 17 '17 at 19:15
  • Here's an old post that deals with it. Relevance to modern day browsers unknown. http://stackoverflow.com/questions/2587677/avoid-browser-popup-blockers Generally I would guess that the "only open a pop-up as a direct result of user action" still holds true. Pop-up location origin may play a part as well. – jered Mar 17 '17 at 19:17
  • I want to auto submit that's why I have Javascript inside a
    instead of inside
    – Subbarami Reddy Mar 18 '17 at 08:57
  • Please tell me any alternate solution to avoid popup blockers – Subbarami Reddy Mar 18 '17 at 08:58

0 Answers0