Way to detect “Refused to display document because display forbidden by X-Frame-Options.” error? [duplicate]
This question already has answers here : Catch error if iframe src fails to load . Error :-“Refused to display 'http://www.google.co.in/' in a frame..” (7 answers) I am using 'google viewer' to view some documents. Only problem is, if the browser has a google-login that is in "limbo" it shows nothing and the "Refused to display document because display forbidden by X-Frame-Options." error occurs and is shown in the console. What I mean by "limbo" is when a login is known but the user has to re-enter their password to reverify themselves. Is there a method to detect when this error occurs so I