If an image fails to load on a page we have the onerror function which can load a default image.
Is there an equivalent for loading a site into an iFrame?
E.g. mashable.com can be loaded into an iFrame whereas many social sites e.g. Facebook, Twitter et al can not.
So when a user tries to load e.g. Twitter and nothing is shown, I'd like a message to show saying "this page cannot be displayed" and then open the link in a new tab instead and direct them after say 3 seconds.
Not sure if this is possible.