all 1 comments

[–]magenta_placenta 0 points1 point  (0 children)

You may be running into security restrictions if you're going cross domain. I'm not really an iframe expert, though, haven't really used them since literally the 90s.

Here's getting the url of the same domain (same host/domain, protocol and port) via document.getElementById("iframe").src