I just find it weird how the Autoit script freezes whenever a Javascript dialog appears. No other programming language I know has this issue. I've tried all these and I still can't get it to work. This is what the AutoIt Window says $TrashCan is the button that is found on the IE page that triggers a javascript alert   _IEAction($TrashCan, "click") ConsoleWrite("DONE")   Is my code, ConsoleWrite never happens until I manually click the close button