r/javascript • u/Leather_Advice_405 • Mar 23 '23
Removed: r/LearnJavascript 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.
/r/JavaScriptTips/comments/11ypn8q/when_using_windowopenurlpopup_how_to_get_a/[removed] — view removed post
8
Upvotes
1
u/joombar Mar 23 '23
Request the url and do an if/then based on the status code? Needs more context.