I need to make sure that when the user clicks OK in a JavaScript alert window, the browser moves to a different URL. Is this possible?
Yes, simply redirect right after the alert() call:
alert()
alert('blah blah'); location.href = '....';