从iframe更改父网址 [英] Change Parent url from iframe
问题描述
需要帮助解决一个简单的问题!它具有以下标准:
1)点击iframe中的图像链接更改父页面,单击另一个iframe图像链接将父级更改为另一个页面(见下文)。 / p>
这可能听起来很简单,但我现在用Google搜索了几天,看了很多论坛。
代码可以是html css或js,但请尽可能简单地保留任何答案,并发布一个完整的工作示例,因为我是新手编码或重新编码测试网站: http://www.howiepotter.com/parent.html
< img src =https://i.stack.imgur.com/DqDds.jpgalt =在此处输入图像说明>
http://reference.sitepoint.com/html/a/target
_ top
在顶级框架集中加载内容(实际上,整个浏览器
窗口),无论当前帧下多少嵌套级别是
位于
< a href =pagetarget =_ top>替换父网址!< / a>
Need help with a simple problem! which has the following criteria:
1) click on images link in iframe changes Parent page, click on another iframe image link changes Parent to another page (see below).
It may sound simple but I'm being googled it for days now and looked over many forums. Code can be in html css or js, but please keep any answers simple as possible and post a full working example to work as I'm new to coding or recode the test site: http://www.howiepotter.com/parent.html
http://reference.sitepoint.com/html/a/target
"_top"
loads content in the top-level frameset (in effect, the whole browser window), no matter how many nested levels down the current frame is located
<a href="page" target="_top">Replace parent url!</a>
这篇关于从iframe更改父网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!