Need topmost URL of embedded site

I am only able to retrieve the “src” URL from an embedded site. I am wanting to allow for some navigation and then retrieve the current URL.

My embedded URL is an obituary lookup site:

Here’s an example of a child URL I want to retrieve programmatically: