I am trying to have a link at the top of an iframe that users could use to save iframe src to their favorites. Something like what I have below... but my problem is that iframe is loaded dynamically, so I would have to have a way to catch whatever Iframe src is at that time. I am thinking that I need to do getElementById (somehow). Am I oversimplifying this? Is this possible?
<span style="cursor: hand; text-decoration: underline;" onclick="window.external.AddFavorite(location.href, document.title);">
Add to favorites</span>