<small id='U9CjR'></small><noframes id='U9CjR'>

  • <i id='U9CjR'><tr id='U9CjR'><dt id='U9CjR'><q id='U9CjR'><span id='U9CjR'><b id='U9CjR'><form id='U9CjR'><ins id='U9CjR'></ins><ul id='U9CjR'></ul><sub id='U9CjR'></sub></form><legend id='U9CjR'></legend><bdo id='U9CjR'><pre id='U9CjR'><center id='U9CjR'></center></pre></bdo></b><th id='U9CjR'></th></span></q></dt></tr></i><div id='U9CjR'><tfoot id='U9CjR'></tfoot><dl id='U9CjR'><fieldset id='U9CjR'></fieldset></dl></div>

    <legend id='U9CjR'><style id='U9CjR'><dir id='U9CjR'><q id='U9CjR'></q></dir></style></legend>
    <tfoot id='U9CjR'></tfoot>
      • <bdo id='U9CjR'></bdo><ul id='U9CjR'></ul>
      1. iframe 中的后退按钮(类似 iGoogle 的门户的小部件)

        Back button in an iframe (widget for an iGoogle-like portal)(iframe 中的后退按钮(类似 iGoogle 的门户的小部件))
        <legend id='fCNcb'><style id='fCNcb'><dir id='fCNcb'><q id='fCNcb'></q></dir></style></legend>

          1. <small id='fCNcb'></small><noframes id='fCNcb'>

              <bdo id='fCNcb'></bdo><ul id='fCNcb'></ul>
              • <i id='fCNcb'><tr id='fCNcb'><dt id='fCNcb'><q id='fCNcb'><span id='fCNcb'><b id='fCNcb'><form id='fCNcb'><ins id='fCNcb'></ins><ul id='fCNcb'></ul><sub id='fCNcb'></sub></form><legend id='fCNcb'></legend><bdo id='fCNcb'><pre id='fCNcb'><center id='fCNcb'></center></pre></bdo></b><th id='fCNcb'></th></span></q></dt></tr></i><div id='fCNcb'><tfoot id='fCNcb'></tfoot><dl id='fCNcb'><fieldset id='fCNcb'></fieldset></dl></div>
                  <tbody id='fCNcb'></tbody>
                <tfoot id='fCNcb'></tfoot>

                1. 本文介绍了iframe 中的后退按钮(类似 iGoogle 的门户的小部件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试创建一个具有自己的后退和前进按钮的小部件(基本上是 iframe).也就是说,当我点击小部件后退按钮时,只有 iframe 会返回,而不是整个小部件容器(类似 iGoogle 的门户)

                  I'm trying to create a widget (which is basically an iframe) that would have its own back and forward buttons. That is, when I hit the widget back-button, only the iframe goes back, not the entire widget container (the iGoogle-like portal)

                  我添加了以下链接:

                  <a class="button" href="#" onclick="history.back();return false;">
                  

                  当我将小部件作为常规网页加载时它可以工作,但在 iframe 中使用它时就不行.

                  It works when I load my widget as a regular webpage, but not when it is used from within the iframe.

                  我用谷歌搜索了一下找到这篇文章:

                  I googled a little bit to find this post:

                  http://www.bennadel.com/blog/1592-Getting-IFRAME-Window-And-Then-Document-References-With-contentWindow.htm

                  也许与该 contentWindow 属性有关,但到目前为止还没有.问题是我无法获取门户使用的框架的名称(无论如何都是随机的)

                  Maybe there is something to do with that contentWindow attribute, but so far nothing. The issue is that I can't get the name of the frame that is used by the portal (which is random anyway)

                  我觉得我错过了什么……有什么提示吗?

                  I feel like I'm missing something... any hints?

                  谢谢!

                  推荐答案

                  由于您的小部件和页面托管在不同的域中,因此您无法通过脚本从 iframe 访问父页面.

                  Since your widget and the page are hosted under different domains for sequre reasons you won't get access from iframe to the parent page by scripts.

                  这篇关于iframe 中的后退按钮(类似 iGoogle 的门户的小部件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Pause youtube video, youtube api(暂停 youtube 视频,youtube api)
                  Youtube iframe api not triggering onYouTubeIframeAPIReady(Youtube iframe api 未触发 onYouTubeIframeAPIReady)
                  How can I stop a video with Javascript in Youtube?(如何在 Youtube 中停止使用 Javascript 的视频?)
                  How to call Greasemonkey#39;s GM_ functions from code that must run in the target page scope?(如何从必须在目标页面范围内运行的代码中调用 Greasemonkey 的 GM_ 函数?)
                  How do you mute an embedded Youtube player?(如何使嵌入式 Youtube 播放器静音?)
                  How to get number of video views with YouTube API?(如何使用 YouTube API 获取视频观看次数?)

                2. <i id='eXWkX'><tr id='eXWkX'><dt id='eXWkX'><q id='eXWkX'><span id='eXWkX'><b id='eXWkX'><form id='eXWkX'><ins id='eXWkX'></ins><ul id='eXWkX'></ul><sub id='eXWkX'></sub></form><legend id='eXWkX'></legend><bdo id='eXWkX'><pre id='eXWkX'><center id='eXWkX'></center></pre></bdo></b><th id='eXWkX'></th></span></q></dt></tr></i><div id='eXWkX'><tfoot id='eXWkX'></tfoot><dl id='eXWkX'><fieldset id='eXWkX'></fieldset></dl></div>

                3. <legend id='eXWkX'><style id='eXWkX'><dir id='eXWkX'><q id='eXWkX'></q></dir></style></legend>

                4. <small id='eXWkX'></small><noframes id='eXWkX'>

                  <tfoot id='eXWkX'></tfoot>

                        <tbody id='eXWkX'></tbody>

                            <bdo id='eXWkX'></bdo><ul id='eXWkX'></ul>