javascript window.open not working in safari and chrome

后端 未结 1 397
离开以前
离开以前 2021-01-06 00:32

I have a div element. The div is an icon. When you click on this icon is triggered a form submit. On the form submit there are some calculations and with the result of those

相关标签:
1条回答
  • 2021-01-06 00:55

    you need to call window.open as a direct result of a onclick event (user event)... you can't do something before async, and then on a result of that do the window.open

    0 讨论(0)
提交回复
热议问题