iframe重定向到父页面 [英] Iframe redirect to parent page

查看:187
本文介绍了iframe重定向到父页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,
我面临一些与iframe相关的问题.

我有两个托管在不同Web服务器上的网站.在我的第一个网站中,有四个页面
像page1,page2,page3和page4一样,页面包含4个按钮button1,button2,button3和button4.当我单击button1时,将显示第1页……类似地,当我单击button2时,将显示第2页.

现在page1包含一个I框架,其中我已将源URL设置为网站2的另一页面,而website2的页面包含按钮.

现在,我想要的.当我单击website2页面的按钮时,它应该重定向到website1的page2.我们不会丢失会话页面website1.请让我知道解决此问题的最佳方法.

Dear all,
I am facing some issue related to Iframe.

I have two websites which are hosted on different web server. In my first website , there are four pages
Like page1,page2,page3 and page4 and pages contains 4 button button1,button2,button3 and button4 . When I click on button1 then page1 display………… similarly when I click button2 then page 2 display.

Now page1 contains one I Frame where I have set source URL to my other page of website 2 and page of website2 contains button.

Now , what I want. When I click button of page of website2 then it should redirect to page2 of website1 . We don’t loss session page website1 . Please let me know any best approach to accomplish this problem.

推荐答案

您将需要对其进行编码,以便按钮导航至所需位置.在IFrame中显示的页面不受其托管页面的控制.
You will need to code it so the buttons navigate to the desired location. The page being displayed in the IFrame is not controlled from the page it is being hosted in.


这篇关于iframe重定向到父页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆