Reputation: 1704
I am setting up a site which will work as a containing site around a 3rd party site using an iframe. I want the user to be able to browse the 3rd party site (iframe), then submit the URL to the containing site, for me to then store.
I would like to therefore provide either:
Upvotes: 1
Views: 26
Reputation: 943650
a way to programatically access the current URL of the iframe
You can't. That would involve spying on what the user does on another website. Browsers will not let you do that.
a way to display the current URL of the iframe
That would require you to programmatically access the current URL of the iframe. See above.
another method
Write a browser extension instead of trying to do this as a website.
Upvotes: 2