Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将我从我的网站引用的网站加载到一个框架中(类似于谷歌图片)。但我也想让用户能够打破这种框架。就像谷歌图片在框架右下角的“删除框架”链接一样。我怎么可能使用 Javascript 来做到这一点?
像这样:
top.location = "URL of framed page";
或者,您可以<a>使用target="_top".
<a>
target="_top"