javascript - Catch alert() thrown from iframe? -
is possible detect when iframe containing external website fires alert() dialogue?
i have iframe external website , can send query parameters in url, if query doesn't return results, page loads generic page , fires alert didn't find query. don't have access iframe source, i'm trying catch , leave message on page above iframe source generic (or something).
is possible?
the same origin policy prevents interacting other domains contents.
so answer no can not detect unless have control of other domain.
Comments
Post a Comment