Short answer: Not really.
Long answer: knowing whether the URL will be resolved on a page that does not want to be in the iFrame, you need to know before loading it whether the page has a script, due to which it will jump out the iframe and into a new tab / window.
If you have an exhaustive list of those pages that have this functionality, then you just need to check whether the link you are trying to open is in this list, and then decide what to do with it.
source share