TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Getting content outside an iframe

2 pointsby amrithkalmost 17 years ago
I remember seeing a similar post to this some time ago but I am not able to find it. Sorry for the repeated posting.<p>I have an iframe that sources an upload page (for images). Basically, when a user uploads an image, the script returns the location of the image if the upload was successful. Is there a way to obtain this image src outside the iframe (which house the upload page) on the main page?<p>Thanks

1 comment

qhoxiealmost 17 years ago
Give the iframe an id, select by that id, and then access that variable's contentWindow.document field.
评论 #260095 未加载