Support window.alert, window.prompt, window.confirm