get_last_messagebox_caption
get_last_messagebox_caption(); - get the title of the browser's last dialog message
After testing, the function returns the result of its work to the script :
message title – the title of the last browser dialog message
"" – an empty string (there were no browser messages during operation)