This jQuery will return the source URL of a frame:
$('#frame-name').attr('src')
But if a link inside the frame is clicked, the original source is still returned.
Is it possible to detect the new source URL? Or get the source of the new document loaded in the frame? If either of those is a yes, are there security constraints if the source frame contains an URL from a different domain?