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
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