I am searching for a way to close a Javascript pop-up/message box (i.e. not a NEW IE window, but a scripted alert()) that loads when a webpage is loaded. >
One work-around could be to recognize when your script is stuck and then just send the keystroke "enter" to close the pop-up.