r/JavaScriptTips • • Mar 22 '23

When using window.open(url,popup) how to get a spinner until the url loads and wanted to show popup if url loads successfully with status 200 and show error modal on failure of this url.

0 Upvotes

Duplicates