TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Getting content outside an iframe

2 点作者 amrithk将近 17 年前
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

qhoxie将近 17 年前
Give the iframe an id, select by that id, and then access that variable's contentWindow.document field.
评论 #260095 未加载