Get last Alert()

 
Is there a function or method that gets the last Alert string message. 

Or a method that captures a string if a new alert message
 
No