It would be great if there was a way to detect when frame content can't be loaded because of the x-frame-options header. That way, if we were showing framed content we could alert the user why it won't load, or just forward them to the url in the frame. Maybe there could be an onError handler when loading the frame? There's an outstanding stackoverflow question about this: http://stackoverflow.com/questions/7950184/is-there-a-client-side-way-to-detect-x-frame-options
How is this "unconfirmed"? Many people are asking for the event to detect this and it seems odd that it's not a standardized error or an error code you can detect in JS.
This is not something we want to expose directly to JavaScript as it could be used to attack cross-origin resources. (It would also go against the HTML Standard.)