Go to URL after OK button if alert is pressed

What do you mean by “make sure“?

alert('message');
window.location = "https://stackoverflow.com/some/url";

redirects user after they click OK in the alert window.

Leave a Comment