<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 的门户的小部件)

        时间:2023-09-07
        <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 的门户的小部件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何为列设置 Column-Toggle Table Widget 的默认值? 下一篇:小部件 - 做什么和不做什么

                  相关文章

                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>

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